Right now I’m doing this (pseudo code) posts = content_type("special_stuff"); $i = 0; $n = 5; $while(have_posts) { if($i == $n) { // print the content } ++$i; }...
I want to show 8 recent products from multiple authors on the frontpage. Need to show 1 recent product per author. Currently i’m using basic wp query to show...
trying to display random posts from each category that my custom post belongs to (it is related to 2 categories). I am trying to get post categories by id....
I’m wondering how I can show recent posts from the same taxonomy as the post that’s currently being viewed (working with custom post types and custom taxonomies). If it...
What’s the difference between “get_posts” and “wp_get_recent_posts” when used with “setup_postdata”?
This might be a completely “I’m still new to WP” type question, but I ran into some interesting output when using get_posts() and wp_get_recent_posts() in a custom function I...
I’m trying to sort posts based on one post meta value and date. I’m using this plugin ( https://github.com/JonMasterson/WordPress-Post-Like-System ) to add like system to my posts. The code...
So I have several custom post types on my site and would like to have a place on my home page that will show the most recent 6 posts...
In the recent posts widget I have the post link first, and the post date second item, How can I change, to display the date in front of the...
Basically I’m looking to add this line of code to posts published within the last 24hrs: <span class="new">New!</span> When the post is over 24hrs old, remove the inline HTML...
I have an issue with a shortcode I have built. The short code pulls the most recent posts based off of certain parameters. below are the parameters extract( shortcode_atts(...