• 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

jaychan

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 20 total)
  • Author
    Posts
  • December 17, 2018 at 9:55 am in reply to: Add custom class to meta shortcode #225102
    jaychan
    Participant

    Hi,

    I copied your code to Code Snippets and got error:

    The code snippet you are trying to save produced a fatal error on line 3:
    
    syntax error, unexpected 'today' (T_STRING), expecting ';'

    I did not make any change.

    December 17, 2018 at 6:41 am in reply to: Add custom class to meta shortcode #225093
    jaychan
    Participant

    Hi,

    I tried but got error:

    syntax error, unexpected 'today' (T_STRING), expecting ';'

    Do you know what is the issue?

    Thank you.

    October 11, 2018 at 6:46 am in reply to: hook a content to 'entry-content' #223669
    jaychan
    Participant

    Thank you.

    March 3, 2018 at 9:41 am in reply to: Before archive-pagination hook #217267
    jaychan
    Participant

    On archive page, as the image:

    View post on imgur.com

    Thank you.

    February 7, 2018 at 7:59 am in reply to: Code error? #216202
    jaychan
    Participant

    The original code is to reposition meta date from bottom to top, then I add condition to it.

    Wondering if something wrong!

    October 24, 2017 at 8:08 am in reply to: Load a New Section on Specific Pages with Taxonomy #212890
    jaychan
    Participant

    Thank you for the source, search on that I found the solution: https://codex.wordpress.org/Function_Reference/has_term

    October 24, 2017 at 4:40 am in reply to: Magazine Pro – Hide Website Link in comments Error #212877
    jaychan
    Participant

    Have you cleared W3 pagecache?

    October 24, 2017 at 4:40 am in reply to: Load a New Section on Specific Pages with Taxonomy #212875
    jaychan
    Participant

    --

    May 26, 2017 at 10:18 am in reply to: Change WP search query #207035
    jaychan
    Participant

    @Victor Font The post did not help but the comment below that provided many info and I was able do it.

    Thank you for your help.

    December 4, 2016 at 9:33 am in reply to: Front page displays latest updated post #196982
    jaychan
    Participant

    Yes, work with the grid. But now I see another issue!

    I've many scheduled posts, when a scheduled post is published, it no longer display at top because the code check 'modified date' of scheduled post, not 'publish date'

    Is there a way for 'latest modified' and 'latest post' to work together?

    Thank you.

    December 4, 2016 at 8:39 am in reply to: Front page displays latest updated post #196978
    jaychan
    Participant

    Thank you @braddalton

    I tried to do it with Genesis loop but not successful. simplerthansimplest @WP.org just help me solve this. For anyone who need this later:

    add_action( 'pre_get_posts', 'alter_query_to_show_modified_post_first' );
    
    function alter_query_to_show_modified_post_first( $query ) {
    if($query->is_main_query() ) {
    $query->set( 'orderby', 'modified' );
    }
    }
    December 4, 2016 at 7:55 am in reply to: Front page displays latest updated post #196976
    jaychan
    Participant
    This reply has been marked as private.
    December 4, 2016 at 7:39 am in reply to: Front page displays latest updated post #196973
    jaychan
    Participant

    Yes, I first tried:

    function genesis_grid_loop_args() {
          $args = array(
    	'orderby' => 'modified',
    );
    }

    and then:

    function genesis_grid_loop_args() {
          $args = array(
    	'orderby' => 'modified',
    );
    $query = new WP_Query( $args );
    }

    But none working! Did I miss anything?

    Thank you.

    December 4, 2016 at 7:18 am in reply to: Front page displays latest updated post #196971
    jaychan
    Participant

    I forgot to mention that I used Genesis Grid Loop: https://wordpress.org/plugins/genesis-grid-loop/

    https://github.com/billerickson/Genesis-Grid/wiki

    Could you please guide me how to archive the result without break the loop?

    Thanks.

    December 4, 2016 at 5:38 am in reply to: Front page displays latest updated post #196965
    jaychan
    Participant

    Thank you @braddalton

    Based on your suggestion, I found the function:

    add_action( 'genesis_before_loop', 'ntg_do_query' );
    function ntg_do_query() {
    
            global $query_string;
            query_posts( wp_parse_args( $query_string, array( 'orderby' => 'modified', 'order' => 'ASC' ) ) );
    }

    Is that correct?

    Thank you.

    August 6, 2014 at 1:18 pm in reply to: "topnav" removed after update #117402
    jaychan
    Participant

    No, I moved the second nav to top, in replace for topnav, after the update everything become a mess and I cannot manage to fix it or get any help so I switched thing back, reverse the second nav bar but it's not completely fix.

    As you can see in main site, the topnav (where to put date, RSS feed) disappear so it make the header look stranger! Can you advice how to get it back?

    Thanks.

    June 14, 2014 at 8:42 am in reply to: Move Post Pagination to Top #109719
    jaychan
    Participant
    This reply has been marked as private.
    June 14, 2014 at 4:23 am in reply to: Move Post Pagination to Top #109687
    jaychan
    Participant

    Hi Andrea,

    Thank you for looking into this.

    The site is NSFW so it may make you feel uneasy but I will try to explain more, hope you can help.

    I use Page-Links split a single post up into different web pages by typing <!--nextpage--> in post.
    http://codex.wordpress.org/Styling_Page-Links

    By default, the Page-Links located at bottom of the post, mean that visitors need to scroll down to move to a different.

    now I want it to also available at top. Under post meta info would be perfect.

    Thank you for your advice.

    April 7, 2013 at 12:09 pm in reply to: wordpress post excerpts based on category #33744
    jaychan
    Participant

    Still no luck with my searching, hope someone can help me on this. Thank you.

    December 26, 2012 at 9:20 pm in reply to: Create Not-clickable link in Comment section #7633
    jaychan
    Participant

    Amazing, it worked. 😀

    Thank you very much.

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 20 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