• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Custom loop – Feature surrounded by other categories

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Custom loop – Feature surrounded by other categories

This topic is: not resolved

Tagged: featured article, Genesis Grid Loop, grid loop

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 8 months ago by Brad Dalton.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 31, 2014 at 2:57 am #116413
    Josh Amato
    Member

    I've searched all over for a way to do this -- and I'm sure it's been so I'm probably not using the right terms -- so I'm hoping someone here can point me in the right direction.

    I want to write a custom loop to display a featured article, surrounded by 4 articles that are not featured. These four articles are surrounded by any other category in order by date, the featured article may not be the newest but it would be the newest of the featured. I also want to repeat this all the way down the page. It would look like this:

    [FEATURED] ------- [MISC ARTICLE]
    [---------------] ------- [MISC ARTICLE]
    [MISC ARTICLE --- [MISC ARTICLE]
    ---
    [FEATURED] ------- [MISC ARTICLE]
    [---------------] ------- [MISC ARTICLE]
    [MISC ARTICLE --- [MISC ARTICLE]
    ---
    [FEATURED] ------- [MISC ARTICLE]
    [---------------] ------- [ BANNER AD ]
    [MISC ARTICLE --- [MISC ARTICLE]

    And so on. Any thoughts on how to do this? I believe I'd be able to get this done with the featured post amplified plugin, but I run into a pagination issue since I'd had to instantiate the plugin multiple times -- I'd like to make this an infinite scroll.

    I am doing this on a custom child theme.

    Thanks for any tips or direction!

    July 31, 2014 at 5:12 am #116423
    Brad Dalton
    Participant

    Might help if you linked to what you have already done and posted a link to the code hosted somewhere like Github.

    You'll get more interest that way however i suggest you post this question on WordPress.org or WordPress Developers as its a WordPress specific question not really native to StudioPress.

    You may find this helpful WP_Query


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble