• 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

sbn128

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 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 31, 2015 at 1:10 pm in reply to: Custom field and post_info #161091
    sbn128
    Member

    Thank you very much, Victor. It's work.

    July 30, 2015 at 12:09 pm in reply to: Custom field and post_info #160963
    sbn128
    Member

    But how to make that work?

    My single-answers.php code:

    <?php
    /**
     * Answers post type single post template
     */
    
    add_action('genesis_post_info', 'answer_author_name');
    function answer_author_name() {
    if ( is_single() && genesis_get_custom_field('wpcf-name-author') )
    echo '<span class="entry-author">Answer by: '.  genesis_get_custom_field('wpcf-name-author') .'</span>';
    return $post_info;
    }
    
    //* Customize the post info function
    add_filter( 'genesis_post_info', 'sp_post_info_filter' );
    function sp_post_info_filter($post_info) {
    if ( !is_page() ) {
    	$post_info = '[post_date]';
    	return $post_info;
    }}
     
    genesis();

    And it works partly, but appears in the wrong place:

    Screenshot

    July 30, 2015 at 11:24 am in reply to: Reverse CTP order #160957
    sbn128
    Member

    Thank you, Brad. I Understood.

    July 27, 2015 at 6:06 am in reply to: Reverse CTP order #160565
    sbn128
    Member

    is tax not work. Please help.

    /* Reverse Post Order for Post Archives on the Genesis Framework

    add_action( 'pre_get_posts', 'prefix_reverse_post_order' );

    function prefix_reverse_post_order( $query ) {
    if ( is_admin() )
    return;

    // Only change the query for post archives.
    if ( $query->is_main_query() && is_tax('portfolio') && ! is_post_type_archive() ) {
    $query->set( ‘orderby’, ‘date’ );
    $query->set( ‘order’, ‘ASC’ );
    }
    }

    July 24, 2015 at 11:02 am in reply to: CPT Permalink #160313
    sbn128
    Member

    It looks like I found a solution. I've tried, but helped only this plugin: https://wordpress.org/support/plugin/remove-slug-from-custom-post-type

    July 24, 2015 at 2:09 am in reply to: CPT Permalink #160266
    sbn128
    Member

    I created CTP via function.php. I did not understand. What is CTP definition? Sorry for my bad English.

    July 21, 2015 at 12:48 pm in reply to: Genesis Breadcrumbs #160015
    sbn128
    Member

    Screenshot: http://english-start.com/wp-content/uploads/2015/07/5645646.jpg

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)

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