If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Hi, I am using Enfold and have a category archive that I want to show only the excerpts. I do not want to have to go into each post and set a “more” link in the middle of the post, I want the excerpt to come from the excerpt field. I am using a child theme. I have read what I can here int he forum, but nothing works. I have picked apart the loop-index.php, (tried modifying it in the parent and child themes), and looked at loop-archive.php (appears to be useless?) and anything else I can find. I have set $current_post = the_excerpt(); I have even changed the echo in the HTML output below to simply echo the_excerpt(); but gotten nowhere. It seems like it should not be so difficult to set an archive to the excerpt (NOT using the ‘more’ link in each post). Thanks for your help.
You’ll need to change the way the theme actually generates the archives. In the archive.php file replace:
get_template_part( 'includes/loop', 'index' );
get_template_part( 'includes/loop', 'archive' );
Then you can edit the archive loop to pull the excerpt instead of the_content like you had tried before.
Thank you Devin. I thought I had tried that, but apparently not.
However, now I just can’t seem to get my Child-theme loop-index, and loop-archive to override the parent theme ones. I have placed them in my child theme with the same names, in the root folder of the child theme. Is that the correct way? I don’t want to start rewriting the loops in the parent theme if I can help it.
You need to create a folder called “includes” then place the files like loop-index.php inside.
The topic ‘Enfold- Archive Exceprts’ is closed to new replies.