• 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

octoberstone

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 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 22, 2016 at 1:56 am in reply to: Altitude Pro – Make menu responsive on 1023px #189996
    octoberstone
    Member

    Many thanks Christoph

    I moved all the .genesis-nav-menu.responsive-menu items into 1023px media and it worked. I didn't need to change the global.js from 800 to 1023px as I thought I would. Not sure what the significance of that is. Its working anyway. Thanks again, Tony

    January 27, 2015 at 4:50 am in reply to: Display custom post types with a page #138740
    octoberstone
    Member

    Many thanks for your suggestions. I tried your suggestion Braddalton but I got lost - however it did help me understand how things worked and so I was able to refine my search and found the following which worked. The short code to be placed in my page is [Tenders]

    I found it here: http://wpsmith.net/2011/custom-post-types/understanding-wordpress-custom-post-types-displaying-custom-post-types/

    [PHP]function wps_tenders_posting() {
    global $post;
    $xglobals = $GLOBALS;
    $args = array( 'post_type' => 'tenders' , 'posts_per_page' => 10 , 'orderby' => 'post_title' , 'order' => 'ASC' );
    $tendersloop = new WP_Query( $args );
    if ( $tendersloop->have_posts() ) {
    while ( $tendersloop->have_posts() ): $tendersloop->the_post();
    $output .= '<div id="tenders-content">';
    $output .= '<header class="entry-header"><h3 class="tender-title">'.get_the_title() .'</h3></header>';
    $output .= '<p class="entry-meta">Published: <time class="entry-time" itemprop="datePublished">';
    $output .= get_the_date();
    $output .= '</time></p>';
    $output .= '<p>' .get_the_excerpt();
    $output .= '</p>';
    $output .= '<div class="tender-meta">';
    $output .= '

    • <span class="medium">Closing date: </span>' .get_field( 'closing_date' );
      $output .= '
    • <span class="medium">at </span>' .get_field( 'closing_time' );
      $output .= '

    ';
    $output .= '</div></div>';
    endwhile;
    }
    else
    $output = '<p>No tenders were found.</p>';
    $GLOBALS = $xglobals;
    return $output;
    }

    function my_init() {
    add_shortcode( 'tenders' , 'wps_tenders_posting' );
    }

    add_action('init' , 'my_init');
    [/PHP]

    December 10, 2014 at 11:04 am in reply to: Display custom post types on a genesis page #134203
    octoberstone
    Member

    Thanks @anotherusername I mistaking published this topic twice. Couldn't figure out how to remove. 🙂
    I'm a beginner.

    I managed to figure out the code I required with trial and error. If anyone has a similar issue, this is what worked for me.
    I would be keen to know if the code is clean and is a good solution.

    My custom post type is 'tenders'
    I put the code below into my functions file (I actually created a function plugin)
    Thanks to http://wpsmith.net/2011/custom-post-types/understanding-wordpress-custom-post-types-displaying-custom-post-types/

    function wps_tenders_posting() {
    global $post;
    $xglobals = $GLOBALS;
    $args = array( 'post_type' =&gt; 'tenders' , 'posts_per_page' =&gt; 10 , 'orderby' =&gt; 'post_title' , 'order' =&gt; 'ASC' );
    $tendersloop = new WP_Query( $args );
    if ( $tendersloop-&gt;have_posts() ) {
    while ( $tendersloop-&gt;have_posts() ): $tendersloop-&gt;the_post();
    $output .= '&lt;div id="tenders-content"&gt;';
    $output .= '&lt;header class="entry-header"&gt;&lt;h1 class="entry-title"&gt;<a href="'.get_permalink().'" title="' . get_the_title() . '">'.get_the_title() .'</a>&lt;/h1&gt;&lt;/header&gt;';
    $output .= '&lt;p class="entry-meta"&gt;Published: &lt;time class="entry-time" datetime="2014-11-10T10:47:44+00:00" itemprop="datePublished"&gt;';
    $output .= get_the_date();
    $output .= '&lt;/time&gt;&lt;/p&gt;';
    $output .= '&lt;p&gt;' .get_the_excerpt();
    $output .= '&lt;/p&gt;';
    $output .= '&lt;div class="tender-meta"&gt;';
    $output .= '<ul><li>&lt;span class="medium"&gt;Closing date: &lt;/span&gt;' .get_field( 'closing_date' );
    $output .= '<li>&lt;span class="medium"&gt;at &lt;/span&gt;' .get_field( 'closing_time' );
    $output .= '</li></ul>';
    $output .= '&lt;/div&gt;&lt;/div&gt;';
    endwhile;
    }
    else
    $output = '&lt;p&gt;No tenders were found.&lt;/p&gt;';
    $GLOBALS = $xglobals;
    return $output;
    }
    
    function my_init() {
    add_shortcode( 'tenders' , 'wps_tenders_posting' );
    }
    
    add_action('init' , 'my_init');
    
    July 30, 2013 at 5:56 am in reply to: Agentpress Next & Previous listings #53191
    octoberstone
    Member

    Hi Brad, many thanks for this. Got it to work with a bit of tweeking. I updated to Genesis 2.0 and updated the child theme 'Agentpress' for html5.

    The instructions for updating the child theme were missing a vital piece of php though, to turn on the turn on HTML5 Markup - which I found here: http://dynamiktheme.com/genesis-xhtml-to-html5-css-converter/ leading on to here: https://gist.github.com/StewartChamberlain/5637847#file-add-html-5-support-to-genesis-2-0-child-themes ... if anyone is interested.

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

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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