April 12, 2013 at 7:46 pm #35128
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...!
AndreApril 12, 2013 at 7:59 pm #35130
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/
April 12, 2013 at 8:15 pm #35135
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.
AndreApril 12, 2013 at 8:28 pm #35139
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/
April 12, 2013 at 8:32 pm #35141
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?
AndreApril 12, 2013 at 9:03 pm #35155
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:
Then paste the CSS in your child themes style.css file if you want to add styling to the link.
April 12, 2013 at 9:08 pm #35158
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...
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.
AndreApril 12, 2013 at 9:13 pm #35160
If the plugin doesn't support custom post types, you'll need a custom function or another plugin.
April 12, 2013 at 9:55 pm #35170
I would like to know how I can see the custom-types templates in my editor sidebar in order to select a particular one?
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!
You must be logged in to reply to this topic.