extract 1 “featured post” to homepage of WP
I set up a whole site in wordpress, so we’re installed in the root folder. the homepage of wordpress is a single “page” within wordpress, because it’s mostly static content. however, I want to have one post “featured” in this page, and figured I would set up a “featured” category in which to place that featured post.
I created a standalone template file for just this page, which basically comments out all of the headings, comments, and other formatting and gives me a blank page in which I can write whatever HTML I want into the homepage by editing the “page” in wordpress.
so can someone help me insert the correct PHP code to insert the contents of a single category into the page’s HTML? remember, I won’t be inserting this into the template file, rather the actual HTML of the page.
- The topic ‘extract 1 “featured post” to homepage of WP’ is closed to new replies.