• 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

billerickson

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 20 posts - 1 through 20 (of 21 total)
1 2 →
  • Author
    Posts
  • May 18, 2016 at 8:21 am in reply to: Short Code for include_content not displaying at 100% #185841
    billerickson
    Member

    Yes, you are correct. When you use [display-posts include_content="true"], it strips out any instances of the [display-posts] shortcode in that resulting output. This is by design.

    Without this feature you could break your website with an infinite loop. If you include_content and one of those posts also has a shortcode that includes_content linking to the current page, the infinite loop will break your site.

    This feature will never be removed from the Display Posts Shortcode. If you want to run the risk of breaking your website, you can manually edit the plugin and remove the add_filter() and remove_filter() lines here: https://github.com/billerickson/display-posts-shortcode/blob/master/display-posts-shortcode.php#L423-L428

    I also recommend you change the plugin version number to something high, like 99, right here ( https://github.com/billerickson/display-posts-shortcode/blob/master/display-posts-shortcode.php#L6 ) so that when the plugin is updated your manual edits are not lost.

    November 7, 2014 at 7:47 am in reply to: Grid Loop Plugin: Remove Post Title #130780
    billerickson
    Member

    The function you're making changes to is be_grid_content(), which displays the content of your grid posts.

    The reason you are seeing the first post's title and not the rest is you've told Genesis to remove the post title but you did it from the content area, so the first post's title has already been output.

    Remove the code you added to be_grid_content() : remove_action( 'genesis_entry_header', 'genesis_do_post_title' );

    Then add this: https://gist.github.com/billerickson/beb827a15c5407e62de2

    October 10, 2013 at 7:25 pm in reply to: Create New Page Template #66202
    billerickson
    Member

    Instead of creating a new page template, try using my Genesis Title Toggle plugin.

    August 29, 2013 at 12:26 pm in reply to: Category vs Single Featured Images Ideas – Agency #59579
    billerickson
    Member

    Where is the thumbnail coming from on the single post? That's not a Genesis feature. My guess is that the Agency theme is adding that. Find the function that's outputting the thumbnail on the single post and change the size from 'thumbnail' to 'full'

    August 29, 2013 at 12:06 pm in reply to: Category vs Single Featured Images Ideas – Agency #59576
    billerickson
    Member

    I'll be honest, I don't see how the code you posted is actually working.

    1. be_no_thumbnail(), in the way you're using it, should be echo'ing the output, not returning it.
    2. be_no_thumbnail() has an is_category() conditional, which means it can't be running on the single posts.

    I think you're over complicating things. What happens if you remove all this code? What is the default display of the single post? Then what are the features you're looking to add?

    If the only feature you want to add is a fallback for the archive page, add the following to your theme's functions.php file: https://gist.github.com/billerickson/6381350

    I duplicated the genesis_do_post_image() function as be_post_image_with_fallback(). I then added a bit to it (right before the !empty( $img) ) that adds the fallback if there's no image. I then removed the genesis_do_post_image() function from its hook and replaced it with our new one. I also defined the fallback image function.

    This could also be done with less code by filtering genesis_get_image args and settings the 'fallback' to your fallback image. But that would be a bit more complicated and outside the scope of the tutorial you linked to previously

    August 1, 2013 at 8:16 pm in reply to: Display subpages menu only if there are subs #53661
    billerickson
    Member

    Why not use the BE Subpages Widget plugin? Seems like it already does everything you're trying to do.

    August 1, 2013 at 8:11 pm in reply to: Custom Menus for Custom Post Types #53659
    billerickson
    Member

    Are you trying to add the Genesis Simple Menus metabox to the Edit Videos screen? Add this to your theme's functions.php file:

    add_post_type_support( 'video', 'genesis-simple-menus' );

    August 1, 2013 at 8:04 pm in reply to: Remove Automatic Creation Of H1 Titles #53658
    billerickson
    Member

    Try using the Genesis Title Toggle plugin. Once installed, you can go to Genesis > Theme Settings to hide all page titles by default. When editing an individual page you can override this.

    August 1, 2013 at 8:02 pm in reply to: Genesis 2.0 #53657
    billerickson
    Member

    It will be coming out early next week: https://twitter.com/bgardner/status/363053913559146497

    August 1, 2013 at 8:00 pm in reply to: Hide page titles not blog titles #53656
    billerickson
    Member

    Try using the Genesis Title Toggle plugin. Once installed, you can go to Genesis > Theme Settings to hide all page titles by default. When editing an individual page you can override this.

    March 26, 2013 at 11:28 am in reply to: Custom Sidebars for CPT Showing Primary Widgets as Well #31347
    billerickson
    Member

    Two issues:

    You need to remove the function that Genesis Simple Sidebars adds to create a sidebar. That's what's causing the extra one
    You should make your function hook in later so that it will catch Genesis Simple Sidebars

    Here's how I would do it: https://gist.github.com/billerickson/5247346

    You could also simplify this by replacing the last add_action() with the dynamic_sidebar( 'sermon-sidebar' ) since you're already on the genesis_sidebar hook.

    February 14, 2013 at 5:56 pm in reply to: Grid loop (Bill Erickson version) – content limit for features #20425
    billerickson
    Member

    Did my response to your comment on my blog not work? Here's what I said:

    Try this instead: https://gist.github.com/billerickson/4947529

    The filter in the previous link doesn’t exist in the advanced example above, only the plugin.

    You can use the plugin with custom post types by using the ‘genesis_grid_loop_sections’ filter (http://www.billerickson.net/code/limit-genesis-grid-to-specific-category/ ). I prefer to use the plugin rather than the advanced example above to keep the theme simpler.

    January 16, 2013 at 4:42 pm in reply to: Grid Loop in Genesis 1.9 not working on pages #12454
    billerickson
    Member

    (my responses keep getting lost. I responded to this a while ago)

    The issue is that the pagination functions use the main query, not your custom one. So a hacky workaround is to overwrite the main query with your new one (assign your query to $wp_query instead of $loop).

    At the end, include wp_reset_query() which resets $wp_query and $post. wp_reset_postdata() only does the $post.

    Example: http://www.billerickson.net/code/pagination-in-a-custom-query/

     

    January 16, 2013 at 10:10 am in reply to: Grid Loop in Genesis 1.9 not working on pages #12318
    billerickson
    Member

    Glad I can help!

    January 16, 2013 at 9:49 am in reply to: Grid Loop in Genesis 1.9 not working on pages #12312
    billerickson
    Member

    Query arguments in the grid loop are now ignored. This is because most uses of the grid loop were for displaying the main query (ex: blog posts on your blog page, category page...), and providing query arguments like 'posts_per_page' lead to 404 errors. Unfortunately this also means you can't use it for custom loops, like you were doing.

    Take a look at the staff_do_grid_loop() function here: https://gist.github.com/4548000 (I wrote it directly in the Gist so can't guarantee it's perfect).

    First you specify your query arguments, then create a new loop like this: $loop = new WP_Query ($args );
    Then you loop through this: if( $loop->have_posts() ): while( $loop->have_posts() ): $loop->the_post();
    Then you specify the markup for each post. I'm wrapping them in a div with either a class of "one-half first" or "one-half" depending on the post count. Inside this div, I have the title hyperlinked and the excerpt.
    Finally, once you're done with your loop run wp_reset_postdata(); . This reverts the $post object back to the original query's.

    For more information:

    Custom WordPress Queries (for custom queries)
    Customizing the WordPress Query (for the main page query)
    A better, easier grid loop (this is for the main query, but the example I provided in this post takes the idea and applies it to a custom query)

    January 16, 2013 at 9:48 am in reply to: Grid Loop in Genesis 1.9 not working on pages #12311
    billerickson
    Member

    (hopefully my long, previous reply will show up sometime. Here it is: https://gist.github.com/4548117 )


    @varickdesign
    , there was no change to WordPress core that made this an issue. The problem is that the grid loop was poorly constructed to begin with. When modifying the main query (which this was originally designed for), you need to separate the actual query from the formatting. Read my blog posts at the bottom of the previous post for more information.

    January 16, 2013 at 9:44 am in reply to: Grid Loop in Genesis 1.9 not working on pages #12309
    billerickson
    Member

    Query arguments in the grid loop are now ignored.  This is because most uses of the grid loop were for displaying the main query (ex: blog posts on your blog page, category page...), and providing query arguments like 'posts_per_page' lead to 404 errors. Unfortunately this also means you can't use it for custom loops, like you were doing.

    Take a look at the staff_do_grid_loop() function here: https://gist.github.com/4548000 (I wrote it directly in the Gist so can't guarantee it's perfect).

    First you specify your query arguments, then create a new loop like this: $loop = new WP_Query ($args );
    Then you loop through this: if( $loop->have_posts() ): while( $loop->have_posts() ): $loop->the_post();
    Then you specify the markup for each post. I'm wrapping them in a div with either a class of "one-half first" or "one-half" depending on the post count. Inside this div, I have the title hyperlinked and the excerpt.
    Finally, once you're done with your loop run wp_reset_postdata(); . This reverts the $post object back to the original query's.

    For more information:

    Custom WordPress Queries (for custom queries)
    Customizing the WordPress Query (for the main page query)
    A better, easier grid loop (this is for the main query, but the example I provided in this post takes the idea and applies it to a custom query)

     

    December 18, 2012 at 6:10 pm in reply to: How to add a grid to Landscape theme? #6055
    billerickson
    Member

    Have you tried using this plugin?

    http://wordpress.org/extend/plugins/genesis-grid-loop/

    I haven't tested it in Landscape but it should work on all Genesis child themes (as long as the main loop hasn't been modified).

    December 18, 2012 at 12:23 pm in reply to: Add Background Image to CONTENT AREA #5964
    billerickson
    Member

    Here's how I'd do it:

    1. Move the .page-title box outside of #inner, to just below the header. I don't have your theme code so I'm not sure exactly what it looks like (and I'm not doing all the work for you 🙂 ), but it would be something like this:

    remove_action( 'genesis_before_content_sidebar_wrap', 'page_title_area' );
    add_action( 'genesis_after_header', 'page_title_area' );

    2. Since you've moved it outside of #inner .wrap, you'll need to modify the function so it has its own wrap. Hop into the function responsible for the page title area, and add <div class="wrap"> at the top and </div> at the bottom (you could also add this inside the .page-title div, but then you might need to modify some styles since right now it's expecting the .page-title to be inside a wrap)

    3. Now the content is the first thing inside of #inner, so apply your full width styling to #inner.

    December 12, 2012 at 2:23 pm in reply to: How do I Remove Blog, side bar, & footer from home page #4769
    billerickson
    Member

    Change it to this: https://gist.github.com/e96d8669be4502217e47

    (I added the two lines to the top of the file, but below the <?php )

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 21 total)
1 2 →

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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