• Resolved tobypsl

    (@tobypsl)


    In Elementor I use a plugin ‘Dynamic Content For Elementor’. This is a great plugin but I’m hoping to shift from Elementor because of price and my site speed.

    The reason I bought that plugin is because I can create a content loop for a custom post type. Then I can list articles of that custom post type – filtered by, for example, category – on templated pages that have that category (shared taxonomy created in CPTUI).

    From what I have read it seems in GB I would use an element to create the template for the page.

    Then a Custom Query Loop to list posts of the CPT with the same taxonomy.

    Then presumably to show this list in the first element I would add the 2nd element, for the post list, to the first.

    But I have read it is not possible to show one element inside another element?

    Is there an alt way to put a filtered post list inside an element?

    And is there a way to do this with the entry level GB instead?

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter tobypsl

    (@tobypsl)

    As an example. Imagine I have 3 service pages – in my case:

    1. Photography
    2. Videography
    3. web

    Each of these services is comprised of 6 ‘Methods’. The Methods have a Custom Post Type with ACF fields added.

    A custom taxonomy is assigned to each service page and each of the ‘Methods’

    I would like to have a template to manage the display of the 3 service pages. The content is pulled from ACF fields.

    But each page will also list the ‘Method’ posts with the corresponding Taxonomy.

    So the Photography service page has a taxonomy of ‘Photography’ assigned. And 6 of the ‘Method’ posts also have a taxonomy of ‘Photography’. So on the Photography service page, will be populated with acf data for photography but also a list of the 6 ‘Methods’. The style obviously using a loop.

    Another way I have looked at doing this historically is by creating relationships in ACF between the Main Service Page and the Methods.

    I’m not clear on the approach that is used in GB as the video tutorials all refer to using Query Loops in Archive pages whereas I want to include in any page I want – some of which will be templated pages and some will not.

    Plugin Support fernandoazarcon2

    (@fernandoazarcon2)

    Hi @tobypsl,

    You can use a Loop Template or a Content Template from GeneratePress Premium in conjunction with free GenerateBlocks.

    That should allow you to alter your CPT’s template, and show ACF fields.

    It should also allow you to alter CPT archive pages.

    Thread Starter tobypsl

    (@tobypsl)

    Hi Fernando

    Thanks for getting back to me. It’s not the CPT template I’m worried about it’s how to show a list of posts in a certain category (denoted by a taxonomy) on a templated page that is not an archive page.

    It’s possible Generate Press doesn’t have this functionality – as I said Elementor required a plugin to achieve this.

    Plugin Support fernandoazarcon2

    (@fernandoazarcon2)

    To clarify, do you want to show a List of posts from a category of a CPT on a static page?

    If so, you just need a GB Query Loop Block. GB Query Loop Blocks can query CPTs and you should also be able to add a parameter for the category.

    Plugin Support fernandoazarcon2

    (@fernandoazarcon2)

    Hi there! We haven’t heard back from you for a while now so we’re going to go ahead and set this topic as resolved. Feel free to reply if you need any more help.

    Thread Starter tobypsl

    (@tobypsl)

    Apologies. For anyone else interested in how to do this I used JetEngine Post Listing coupled with a custom query (also Jet Engine). There doesn’t seem to be total agreement between Jet Engine and Generate blocks ie. it seems best to create the loop template using only the Jet Engine dynamic blocks for it to render correctly which is a shame as they lack the styling integration that comes with GB’s global styling. But it’s a usable work around for now.

    The site is still incredibly fast compared to the Elementor version I have live.

    I will have a play with the native query loop too at some point.

    Thanks.

    Plugin Support fernandoazarcon2

    (@fernandoazarcon2)

    I see. Thank you for sharing!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Post List Inside An Element – Possible in Pro?’ is closed to new replies.