Tagged: blog template
Tried posting this and it didn't show up... so if it shows up twice, my apologies
I would like to create a page with text on top with a single full blog post underneath.
I followed the instructions in the code snippets
I added a new custom field, using query_args as the name, and use and then typed the cat id
This only partially provided a solution. Yes it does show top text and pulls the post from the single category
The post is only a snippet not the full post. Since I use the blog template for the article category, I know more snippets will show with future posts added to the category.
What can I do so only one post shows at a time and it's the full post not a snippet?
You can use custom PHP to solve this problem.
Please copy the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++
You can easily change the conditional tags
No need to use the blog page template and create a custom category archive, Simply use the code on an existing category so you can delete that page template you created.
I tested this solution locally and it works.
I'll give it a try
How can this be done for just the main blog page?
Thank you Brad!
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!