Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Blog archive page not getting updated from template

  • jyotsna4amit

    Hello,

    I have a blog archive template (Block: Category Archive).

    When I click any category from the website, it doesnt give the right blog posts. It just gives whatever is there on the home page.

    This seems to have happened after the Generate Blocks upgrade.

    E.g. Click on Travel from Main menu and see that it only shows the category name. But all the posts under it are not correct. It should only show 1 post as there is only 1 post under it.

    Kindly check and suggest.

  • jyotsna4amit

    Updated: I changed the setting to ‘Inherit query from template’. But now also I cant see anything under Travel or any other category. What could be the reason?

  • Hi there,

    When I toggle off the Inherit query from template option, I can see the taxonomy parameter is added.

    Please remove all parameters if you want to use the Inherit query from template option.
    https://app.screencast.com/g22xaScRVYs5A

  • jyotsna4amit

    Thanks a lot Ying! 🙂

  • jyotsna4amit

    Hello Ying,

    I implemented what you suggested.

    However, I would like to have a stylized category page (Template is Block: Category Archive).

    The page structure is as follows:
    1. Featured article on left
    2. 4 thumbnails and titles on right (this should exclude the featured article)
    3. 1 thumbnail and title one after the other as rows (this should exclude the featured article & the 4 articles from point 2, so I think it should have offset of 5?)

    https://postimg.cc/7fv1Jrh5
    https://postimg.cc/JsMbK3bm

    So if someone clicks on category called ‘Science’ this page should be structured that way.

    But the issue is the Section 2 and 3 are showing all articles apart from Science. What is the way around?

    I have to use options like offset and exclude taxonomies.

    Kindly help! And thanks a lot for all your support! The GP team is excellent! 🙂

  • Hi there,

    In this case, you’ll need to use a custom code snippet to add the required parameters, as the ‘Inherit query from template’ option must remain enabled. Let me know if you’d like to proceed with that.

  • jyotsna4amit

    Hi Alvind,

    That would be great, if you could help in this.

    Regards

  • The parameters won’t work with the Inherit query from template option enabled.

    You currently have 12 categories; you might need to manually set up taxonomy > category for each of the query blocks in the element, and you have to create 12 of those.

    I don’t think there’s an automatic way to do this, or you will need to write a custom PHP function to alter the queries.

  • jyotsna4amit

    Thanks Ying. I will go with a simple template then. Will close this ticket! 🙂

  • You are welcome   🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.