-
ellastearn
Hello,
I want to improve the structure of my site, so on each category: https://www.forgettingfairytales.com/category/dating/ I want to feature my top posts below the feed of recent posts within that category below. Ideally it would look exactly the same as that link now, except with the featured posts above.
Is there a way to do this with GeneratePress elements at all?
Or would I have to do it by creating a PAGE which has WP Show Posts at the top featuring the blog posts like this: https://ibb.co/ZpbzMp2n And THEN adding the feed of posts in that category below? If so, how do I go about adding that feed please, as – at the moment – I just feature the category itself and that automatically show’s up all the posts (if that makes sense.)
Thank you so much for your help.
Best wishes,
Ella -
Hi there,
Do you mean you want the first post of the category to be the featured post instead of the latest post?
If so, how will you define the featured post? Will you assign a tag to it?
Let me know 🙂
-
ellastearn
Sorry for the slow reply. I hadn’t seen that you had replied!
I want to have a feed of blog posts, still like this ideally: https://www.forgettingfairytales.com/category/dating/
These should show up in the order of the latest posts first still.
The only difference is, above that, where the text is currently, I’d like to be able to feature some “top posts” / recommended reads. These will have to have a Top Dating Posts tag added I guess? It will end up looking like how I feature them on the homepage (this was added with Showposts): https://www.forgettingfairytales.com but as right now this page is a CATEGORY page (https://www.forgettingfairytales.com/category/dating/) as opposed to a page I can edit, it won’t allow me to add it in in the same way, so I’m wondering if I have to somehow re-build the page as a page, but I’m unsure how to add the blog category feeds in, if I do it that way?
Sorry, please do let me know if that is unclear or if you need me to clarify anything else at all.
Thanks so much!
All the best,
Ella -
The category title and description section is added via a block element. you can edit the block element and add a WPSP shortcode or a GB query block to display the posts from a certain tag below the description:
https://app.screencast.com/DCDxWhDIHKSKo -
ellastearn
Sorry, can you please explain that a little simpler? I don’t really understand the technical terms and am unsure what you’re saying I need to do here.
Thanks for your help and patience,
Ella -
Alvind
Hi there,
Before that, how do you determine which post is a top or recommended post? If you’ve tagged them with a specific tag, for example, we can guide you on setting up the query parameters accordingly to display them in the desired location.
-
ellastearn
Yes, I can tag them with a specific tag. Thank you!
I have 3 categories to do this for initially:
Breakups:
https://www.forgettingfairytales.com/category/breakups/
I will tag with: BreakupRecommendedReadDating:
https://www.forgettingfairytales.com/category/dating/
I will tag with: DatingRecommendedReadRelationships:
https://www.forgettingfairytales.com/category/relationships/
I will tag with: RelationshipRecommendedReadThanks so much 🙂
-
The category title and description section is added via a block element
Can you find this block element which adds the archive title and description?
Check appearance > elements, look for elements that are assigned to archives.
-
ellastearn
I’m not really clear on what you’re asking me to do. I can see 12 block elements but there’s not separate archives for each blog category and each blog category will feature different posts at the top?
Thanks,
Ella -
You need to find this element and add a query block or your WPSP shortcode in it.
And the post will be shown below the archive title and archive description.
If you can not find the element, please edit your first post on this topic, and add the site info and admin login credentials into the private info field. I can take a look for you.
-
ellastearn
Ooh I think I’ve actually finally found it.
Is this it? https://ibb.co/p6mbdnLv
And this where I need to add the rule? https://ibb.co/vvqGpJcC
/ https://ibb.co/0j08BdZ6If so, how do I actually then add the part where I state that for one blog category, I want to feature posts with a set tag and for another blog category, I need to do a different tag?
Thanks,
Ella -
Your screenshots don’t show the full screen of the element, I can not tell if it’s the one.
If so, how do I actually then add the part where I state that for one blog category, I want to feature posts with a set tag and for another blog category, I need to do a different tag?
If you need to have posts from different tags for different post categories, you have 2 options:
1. create multiple elements to store queries that from different tags, and assign them to different post categories archives.
2. only use one element and one query block, write custom PHP code to alter the query output based on which category archive the query is on.
Let me know 🙂
-
ellastearn
Doing it this way: “create multiple elements to store queries that from different tags, and assign them to different post categories archives.” – sounds perfect.
Can you guide me through that please? Let’s start with featuring breakup post(s) on the top of this page: https://www.forgettingfairytales.com/category/breakups/
As mentioned I will tag with: Breakup Recommended Read
Here’s some screenshots that should hopefully show everything you need for you to then show me what to add in where:
https://ibb.co/YBsycMF3
https://ibb.co/NdtZZdbc
https://ibb.co/kVNr4YpkThanks so much!
-
1. create a new block element – hook, add your featured breakup posts via WPSP shortcode or a Query block from Generateblocks plugin.
2. set the hook name to after_header, set the element’s priority to 11, set the location to post category archive > breakup.
-
ellastearn
Thank you so much for your guidance and patience with this! I feel like we are so so close!
I think I followed your instructions. Please see here: https://ibb.co/8n4H3R0y
But it is showing up like this: https://ibb.co/kV1yPNQc
Could you let me know where I’m going wrong please? It will also need to display in line with the navigation bars, as opposed to further to the left.
Thanks again!
Ella
-
You need to tick the Excute shortcode box in the hook element.
- You must be logged in to reply to this topic.