Help with Custom Blog Page Template

Community Forums Forums Design Tips and Tricks Help with Custom Blog Page Template

This topic is: not resolved

Tagged: 

This topic contains 6 replies, has 3 voices, and was last updated by  provirtua 8 months, 1 week ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #60643

    RainbowSteph
    Participant
    Post count: 27

    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?

    Thanks

    http://annrusnak.com/weekly-webinar/
    #60831

    braddalton
    Participant
    Post count: 9944

    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


    #60836

    braddalton
    Participant
    Post count: 9944

    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.


    #60876

    RainbowSteph
    Participant
    Post count: 27

    Thanks

    I’ll give it a try

    #86794

    provirtua
    Participant
    Post count: 17

    How can this be done for just the main blog page?

    #86918

    braddalton
    Participant
    Post count: 9944

    Try the is_home() conditional tag


    • This reply was modified 8 months, 1 week ago by  braddalton.
    • This reply was modified 8 months, 1 week ago by  braddalton.
    #86933

    provirtua
    Participant
    Post count: 17

    Thank you Brad!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.