• 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

Post Title Links or Dropdown at Top of Category Archives

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 › Design Tips and Tricks › Post Title Links or Dropdown at Top of Category Archives

This topic is: not resolved

Tagged: category archive, display posts shortcode

  • This topic has 4 replies, 2 voices, and was last updated 11 years, 2 months ago by Au Coeur.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 26, 2014 at 2:09 pm #92530
    Au Coeur
    Member

    I have a client who is using category archives to organize a lot of posts on their website. They would like all post titles in each category to be available at the top of the category archive in either a list or a dropdown, so that any individual post can be found without scrolling. I know I can do this by adding a widget area to the top of each category and using a plugin like Featured Posts Amplified, but there are a lot of categories and I would love to set this up as a feature that is automatically available should the client create more categories in the future. Can anyone recommend a plugin? Or does anyone have an idea about how I might utilize Bill's display post shortcodes to and add this into the functions file?


    Mother. Web & Graphic Designer. Lactation Consultant. Blogging about how it all fits together, most recently from northern Colorado. Visit my blog or my design site.

    http://enjoyrhinebeck.com/new/
    April 15, 2014 at 9:12 am #100458
    Susan
    Moderator

    As you posted this a while ago, I hope you got your issue resolved. If not, please let me know, and I will take a look (or escalate if I cannot help).

    If it is resolved, please mark it resolved, so that the thread can be closed.

    Thanks!

    April 15, 2014 at 10:38 am #100503
    Au Coeur
    Member

    Nope, never got it resolved.


    Mother. Web & Graphic Designer. Lactation Consultant. Blogging about how it all fits together, most recently from northern Colorado. Visit my blog or my design site.

    April 15, 2014 at 10:39 am #100504
    Au Coeur
    Member

    ...I also never spent a lot of time trying to figure it out with Bill's plugin.


    Mother. Web & Graphic Designer. Lactation Consultant. Blogging about how it all fits together, most recently from northern Colorado. Visit my blog or my design site.

    May 15, 2014 at 12:11 am #105224
    Au Coeur
    Member

    Hi Susan,

    I am working on this now. The problem I seem to have is related to the current category generation. I am trying to use this code:

    //* Add List Above Category Archives
    function post_list_on_category_archive() {
    if ( is_category() ) {
        	echo '<div class="before-category">';
    	echo do_shortcode( '[display-posts posts_per_page="-1" order="ASC" orderby="title" columns="2" category="$category_id"]' );
    	$category_id = get_query_var( 'cat' );
    	echo '</div>';
    }
    
    };
    
    add_action('genesis_before_content', 'post_list_on_category_archive');

    If I remove "category=..." the short code will display as expected. But for some reason adding in category="$category_id" returns nothing where the shortcode should be.

    Thoughts?


    Mother. Web & Graphic Designer. Lactation Consultant. Blogging about how it all fits together, most recently from northern Colorado. Visit my blog or my design site.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2025 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