Using WP Show Posts in Elements: Loop Element

  • I have been using the WP Show Posts for my archive pages for some time.
    I have the show posts set up in my archive.php files, and it is working as expected.
    I want more control over the spacing of the wp show posts layout so I can have my pages aligned. I can achieve this in a number of ways.

    OPTION 1: Fastest
    Keep current archive.php and add css to target content area. I need the right tag to apply the css to.
    How do I target the wp show list area, so I can apply the spacing to match the rest of the page?
    Here is the example:
    https://www.deezunkerphotography.com/event-category/bellaire-little-league/

    OPTION 2: Preferred
    Move the WP Show list to Elements> Block> Loop Element
    (I like the ability to show all posts, not worry about pagination, and I do not need to create new query loops for my CPTs)

    I can get the layout I am looking for, but I am having trouble with the custom taxonomy archive pages filtering the lists properly.

    Can I set up the block element – loop element to work with WP Show Posts lists and custom taxonomy?
    This way I have control of the spacing, but do not need to recreate the lists into the new query loops

    OPTION 3: More work, but more control in the long run
    Create a new query loop in Elements> Block> Loop Element
    (OK, but then I have to worry about pagination)

  • Hi there,

    unfortunately WP Show Posts plugin is no longer supported, and trying to create a dynamic loop template would be out of scope in this forum.

    We do recommend replacing it with the GenerateBlocks Query Block.

    Is there anything in particular that is stopping tour from doing so ?

  • I am having issues with CPT posts with more than one category showing multiple categories on the term archive page.
    I have played with the settings in the Element, but have not figured it out yet.

    Set up #1:
    Query Type: Post Query
    Pagination Type: Standard
    Post Type: Events
    Post per page: 50
    Taxonomies: Event Categories
    Select Terms: Current Post Terms
    Include or Exclude: Include

    Example:
    https://www.deezunkerphotography.com/event-category/editorial/

    There are several posts with Editorial as the event-category, but there are also some that also have other categories related to these posts. I end up with 45 posts

    Set up #2:
    Query Type: Post Query
    Pagination Type: Standard
    Post Type: Events
    Post per page: 50
    Taxonomies: Event Categories
    Select Terms: Leave blank
    Include or Exclude: Include

    “No results found.”

    Set up #3:
    Query Type: Post Query
    Pagination Type: Standard
    Toggle: Inherit query from template

    Results are as expected with 15 Editorial posts, but # of posts/page is limited to 10, and I do not know how to control this number. I have changed the “Blog” layout in the customizer to 50, but the number of posts per page for the archive does not change and remains at 10.

    While 50 is excessive 10 is too restraining, and I’d like to have control of the # of posts/page.

  • Hi there,

    For setup #3, you can set the number of pages under Settings > Reading, in the Blog pages show at most option.

    For archive or blog pages, method #3 is typically the one to use.

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