Trying to create list of featured posts to display on single page
-
Folks, I’m trying to create a list of the three latest featured posts on my site. I’m trying to use WP_Query to do this as a function in my theme’s functions.php file. The idea is to insert this around the third paragraph of the post.
However, when I test my code, it seems to be running into problems with the_loop(), because it somehow replaces the content of the post with something from my featured posts category! It’s driving me mad, and I’m way out of my depth, but how do I pull off this query without it impacting on the main loop in the page?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Trying to create list of featured posts to display on single page’ is closed to new replies.