Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #25256

    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.

    #126276

    Hi mickfollari,

    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' );

    with

    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.

    Regards,

    Devin

    #126277

    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.

    #126278

    Hi,

    You need to create a folder called “includes” then place the files like loop-index.php inside.

    Regards,

    Ismael

    #126279

    Thanks. I swear I tried that early on and had no luck, but that did it. Excellent!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Enfold- Archive Exceprts’ is closed to new replies.