• 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

Shortcode to display Recent Posts in page

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

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Shortcode to display Recent Posts in page

This topic is: not resolved

Tagged: genesis, outreach, recent posts, shortcode

  • This topic has 8 replies, 2 voices, and was last updated 10 years, 8 months ago by styzer.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • April 12, 2013 at 7:46 pm #35128
    styzer
    Participant

    Hi all,

    After spending the past 2 hours looking for a solution, I thought I better ask here.

    Should be simple enough, but I can't see it:

    - I want to display Recent Posts (Excerpts with a "read more" link) on a page called News. I used the shortcode

    [display-posts tag="news" posts_per_page="3"]

    but it shows a whole lot of content. http://musicmondayca.barefootheart.com/news/

    I deleted this shortcode finally, yet the content still shows...

    I promise I'm not using drugs or alcohol...!

    Help!

    Andre

     

    April 12, 2013 at 7:59 pm #35130
    Brad Dalton
    Participant

    Why don't you simply rename your blog page to news and then you can customize it using the Genesis > Theme settings > Content Archives.

    Or install this plugin http://wordpress.org/extend/plugins/display-posts-shortcode/


    Tutorials for StudioPress Themes.

    April 12, 2013 at 8:15 pm #35135
    styzer
    Participant

    Thanks Brad,

    I'm using that plugin, but the Genesis setting did it!

    However, how could I also include a "read more" link at the bottom of each excerpt? Right now, people can only read the rest by clicking on the title.

    Cheers!

    Andre

    April 12, 2013 at 8:28 pm #35139
    Brad Dalton
    Participant

    No worries Andre.

    Change the content settings in Genesis > Theme Settings > Content Archives > Display Post Content and add a number for the limit.

    You can also customize the read more link http://www.briangardner.com/code/customize-read-more-link/


    Tutorials for StudioPress Themes.

    April 12, 2013 at 8:32 pm #35141
    styzer
    Participant

    Thanks Brad,

    So I copy/pasted Brian's code at the bottom of my functions.php file. But all I see is a ... at the end of the excerpts as before. Something I'm not doing right?

    Andre

     

    April 12, 2013 at 9:03 pm #35155
    Brad Dalton
    Participant

    1. Change the settings first in the Content Archives

    2. After pasting the code you can modify the Continue Reading link in the code.

    You can also style the read more link using the class which the PHP code generates:

    .more-link {}
    

    Then paste the CSS in your child themes style.css file if you want to add styling to the link.


    Tutorials for StudioPress Themes.

    April 12, 2013 at 9:08 pm #35158
    styzer
    Participant

    Hey Brad,

    Just back-stepping a bit: do I need a shortcode or a hook in order to display a post-type on a specific page? I need to display post types that were created using templates (tpl_arrangements.php). Now those pages don't show content although they show on the menu.

    All it shows now are post excerpts...

    http://musicmondayca.barefootheart.com/arrangements/

    Shortcode - what code (or link to a list?)

    Hooks - code and file to edit

    Thanks! I think once I get that sorted out, it's going to be a breeze to complete the site.

    Regards,

    Andre

    April 12, 2013 at 9:13 pm #35160
    Brad Dalton
    Participant

    If the plugin doesn't support custom post types, you'll need a custom function or another plugin.


    Tutorials for StudioPress Themes.

    April 12, 2013 at 9:55 pm #35170
    styzer
    Participant

    Hi all,

    I would like to know how I can see the custom-types templates in my editor sidebar in order to select a particular one?
    http://musicmondayca.barefootheart.com/arrangements/

    You should be able to see a whole list of documents, but none are found.

    Yet, when I check in the plugin, under Manage, I can see the arrangements post-type, and selecting the code, I pasted it at the bottom of my functions.php file.

    If I click the Arrangements link in the left-menu in the admin, I can see all the documents under Arrangements.

    Anyone has any idea why?

    BTW, this used to be a Multi-site, but it's been separated in two individual sites. Could that be the reason?

    Thanks for any help!

    Regards,

    Andre

    http://wordpress.org/extend/plugins/custom-post-type-ui/

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

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