Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • in reply to: Repositioning Genesis Simple Share Above Featured Images #128293


    Hi Brad,

    Thank you! I’ll try this out and see how far I get.

    The Simple Share plugin is free by signing up at Brian Gardner’s blog.


    Will let you know what happens with this code snippet.

    in reply to: Custom Post Types and Category Archives #125481


    This code snippet did the trick:

    //* Show Sermon CPT entries in addition to Posts in Category Archive Pages 
    add_action( 'pre_get_posts', 'cpt_entries_and_posts_in_archives' );
    function cpt_entries_and_posts_in_archives( $query ) {
    	if ( $query->is_main_query() && !is_admin() && is_category() ) {
    	$query->set( 'post_type', array( 'post', 'sermon' ) );

    (props Bill Erickson)

    @Brad – thanks for your input. Your wpsites is a valuable resource!

    in reply to: Custom Post Types and Category Archives #125478


    Hi Brad,

    Thank you for responding.

    The code was generated by Custom Post Types UI plugin.

    I’m going to take a look at your recommendations and links and will post the results.

    Thanks again – Chris

    in reply to: Custom Post Types and Category Archives #125458


    I’m running into the same problem described by SaraGraybill.

    I’ve set up a CPT called “sermon”.
    Set it up manually in my functions.php. (code at bottom).
    The CPT itself correctly uses the Genesis 2.0 Archive template support for CPTs.
    That is: I can view a complete list of all CPTs on an Archive page, and add info to it using Genesis Archive settings. All good.

    However, this CPT has “categories” enabled.
    Yet, when I click on the “Filed under ‘Category Name‘ on a single CPT it brings me to the standard Genesis Category Page (good) but gives me the error “Sorry, no content matched your criteria.”

    The category heading and title which I added in the backend do appear correctly on the category page.
    So… it’s as if it’s seeing the Category correctly – but not seeing the CPTs within the category .

    @ 01themas idea seemed to make sense. But I had no success with it.

    Is there a simple Genesis function for adding Genesis Category Archive Support to CPT Categories (and not just to the Post Type)?

    Any suggestions are welcomed.

    I’m working locally so have no link to provide.

    Here is my CPT registration code… in case maybe anyone spots a glaring omission on my part….

    Thanks in advance for any thoughts or comments.


    add_action('init', 'register_cpt_sermon');
    	function register_cpt_sermon() {
    		register_post_type('sermon', array(
    			'label' => 'Sermons',
    			'description' => 'Audio Recordings of Sermons',
    			'public' => true,
    			'show_ui' => true,
    			'show_in_menu' => true,
    			'capability_type' => 'post',
    			'map_meta_cap' => true,
    			'hierarchical' => true,
    			'rewrite' => array('slug' => 'sermon', 'with_front' => 1),
    			'query_var' => true,
    			'has_archive' => true,
    			'menu_position' => '5',
    			'supports' => array('title','editor','excerpt','custom-fields','revisions','thumbnail','author','page-attributes','genesis-cpt-archives-settings'),
    			'taxonomies' => array('category'),
    			'labels' => array (
    				  'name' => 'Sermons',
    				  'singular_name' => 'Sermon',
    				  'menu_name' => 'Sermons',
    				  'add_new' => 'Add Sermon',
     /*I've included a full series of labels - but left them out for readability here*/
    		) ); 

    in reply to: Couple of queries #30560


    Hi Dawn,

    I’m not sure what you mean when you say

    it’s the Genesis Framework, so there is no custom menu setup

    Genesis does support Custom Menus if you go to Appearance > Menus in the admin area, you should be able to control the menus from there.

    Or, maybe you meant to say “it’s not the Genesis Framework”?

    in reply to: Couple of queries #30477


    Hi Aurore,

    Are you using a version of WP that allows you to use Custom Menus?

    I would think that you just need to go to the the Menus in the back end and Add the desired Category to the Menu that is being used for pages.

    Regarding the second question:

    There’s a function you can add to your functions.php file that will remove the Post Meta that you’re describing.

    You can find that code snippet here: http://my.studiopress.com/snippets/post-meta/#remove


    in reply to: The header is strange #30378


    Hi choikh,

    In your style.css for Generate, find –

    .generate-orange #header

    and add –

    min-height: 110px;


    in reply to: Loop Buddy with Genesis, anyone? #12472


    Hi Travis,

    Thanks for the reply.

    This is the code that I was given by iThemes (or someone at their forum, I think it was a Moderator).



Viewing 8 posts - 1 through 8 (of 8 total)