June 20, 2013 at 10:39 pm #25127
I edited the loop-index.php file by placing (includes > loop-index.php) in my child theme folder and editing the code according to this post.
This is indeed render the listing with an excerpt. But when I click the “read more” link I see in the URL its the single post but only the excerpt is displaying not the full post.June 23, 2013 at 12:39 pm #125855
In its place try using this , though i think a better way would be to pull that login into the loop
$blog_content = (how_many_posts() > 1 ) ? "excerpt_read_more" : "content";
It works. Lets us know how it behaves. My laptop overheated so I can’t tell .
NickJuly 1, 2013 at 7:23 pm #125856
I tried your recommendation, however it displays no listings.
Also not sure what your recommendation of “though i think a better way would be to pull that login into the loop” means.
Maybe I am doing the blog/news section incorrectly? Although I do notice that your demo site included the entire post (not what we desire) in the archive listing.July 2, 2013 at 4:24 am #125857
Yeah, I can see your problem. I really want to tell you that using <!–more–> tag will solve all your problem. It will display the excerpt for both blog and archive page. You don’t need to modify the theme files.
IsmaelJuly 2, 2013 at 2:24 pm #125858
True, but that also defeats the purpose of having an excerpt if we want to have a summary of our post and not the actual beginning of the post itself. Also if we have 100’s or 1000’s of posts to have to go into each one and insert a “more” tag is not very feasible.July 3, 2013 at 5:44 pm #125859
I am using v. 1.71 of the theme and everything works just fine.
Here is a 2min video of 4 blogs types on the same page working with excerpts, more links, images, correct individual pages, etc.
NickJuly 3, 2013 at 7:46 pm #125860
Thanks for the quick video link. To start off, I just changed that preference in the theme options to no blog page. That started to make things to look better off the bat.
I was also creating the latest news page as an archive. That is what I was used to from a previous theme and had it set to that page for the theme option.
So now I created a new page with the blog post content element and its looking better and shows the title and the excerpt.
However when I click on an category for the blog item in the minor meta under title it takes me to a page that lists the full items again instead of a excerpt. Can that be fixed?
Thanks for your help so far. Trying to figure out this new framework is stretching my abilities a bit.July 4, 2013 at 5:49 am #125861
Do what Nick says then edit archive.php, find this code
$more = 0;
get_template_part( 'includes/loop', 'index' );
Replace it with:
$more = 0;
get_template_part( 'includes/loop', 'archive' );
Go to includes folder, edit loop-archive.php then remove everything. Replace the content of the file with this code: http://pastebin.com/HtCj8bys
The topic ‘Still having issues with excerpt’ is closed to new replies.