Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change addPosts to wor either as documented or change documentation #144

Open
Seriousness opened this issue May 1, 2021 · 0 comments
Open

Comments

@Seriousness
Copy link

Instead of
$my_meta->addPosts('posts_field_id',array('post_type' => 'post'),array('name'=> 'My Posts '));
the necessary argument would be
$my_meta->addPosts('catpage',array( 'args' => array('post_type' => 'page')),array('name'=> 'My Pages '));

$temp = array('type'=>'select','args'=> array('posts_per_page' => -1, 'post_type' =>'post') );

To change this I'd suggest:

$temp =  array('posts_per_page' => -1, 'post_type' =>'post') ;
$options = array('type'=>'select', 'args'=> array_merge($temp,$options));

Sorry I was too lazy to go through the whole clone - push - pull request routine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant