Adding Pagination on a Custom Author Page
i have created a custom author’s page that list the title of their posts. but the problem is i can’t get the pagination … Read more
i have created a custom author’s page that list the title of their posts. but the problem is i can’t get the pagination … Read more
I have parent posts (custom post type hierarch=true) with ID 1, 2, 3, 4. The parent posts with ID 2 and 4 have … Read more
In category.php, I want to get list of posts in that category. I found two ways: using get_posts($args) and The Loop. get_posts() way … Read more
I have a query (see below) that gives a list of 10 news items ordered by the meta value “event_date” and filtered so … Read more
I Want to Add My Latest 5 Post Title with Corresponding Link in My Header Position.What was the Actual Php code?Am Newbie …. … Read more
In my plugin, I use these instructions to obtain a list of posts: $args = array( ‘numberposts’ => -1, ‘offset’ => 0, ‘meta_query’ … Read more
I’m trying to only show posts that a user hasn’t seen, like this: $exclude = array(1,2,3); $include = array(3,4,5); $args = array( ‘post_type’ … Read more
I am running code that shows child categories, and all posts in the child categories. But if there are more than 5 posts … Read more
Inside of my loop in single.php, I used a custom query using get_posts to return posts belonging to a certain category. <?php global … Read more
For Microkids related post plugin He said “Using the get_post() function you could get any data you need from the related posts.” and … Read more