Topic Resolution: Resolved
  • Closed
  • goody
    Spectator
    January 17, 2019 at 6:52 am #42152

    I have built blog page with shorcode thanks to Roman’s support and it’s done but I found that the excerpt on archive pages are not showing. At the moment all of the articles are showing on archive page. I want to excerpt them by setting the number of characters like top page of blog but I couldn’t find the archive page setting. How can I manage this?

    Roman
    Participant
    Posts: 3147
    January 17, 2019 at 10:44 am #42177

    Please provide URL to the archive page. thanks

    goody
    Spectator
    Posts: 30
    January 17, 2019 at 11:20 am #42182
    This reply has been set as private.
    Roman
    Participant
    Posts: 3147
    January 17, 2019 at 11:49 am #42184

    can you please try to add this code to the theme child functions.php if it does what you need:

    function evolve_custom_excerpt_length( $length ) {
        return 10;
    }
    
    add_filter( 'excerpt_length', 'evolve_custom_excerpt_length', 999 );
    goody
    Spectator
    Posts: 30
    January 17, 2019 at 12:36 pm #42185

    I can see slight change as is adding the code to functions.php you gave me. Changing the return value from “10” to “1” or “2” is nearly what I wanted but blog posts of excerpted number of characters are various as you can see now.

    Roman
    Participant
    Posts: 3147
    January 17, 2019 at 12:53 pm #42186

    I recommend try for example this plugin https://wordpress.org/plugins/advanced-excerpt/ as this customization requires extra work. Please let me know if it works

    goody
    Spectator
    Posts: 30
    January 17, 2019 at 1:33 pm #42187

    it lools like no use for me. The excerpts are not changed as functions.php with the code and doubled images. Fortunately blog posts are not so many so I will add more tag to each posts one by one. That’s the simplest way I think.

    Thanks for trying to help me.

    Roman
    Participant
    Posts: 3147
    January 17, 2019 at 2:03 pm #42188

    thanks for the update

    goody
    Spectator
    Posts: 30
    February 6, 2019 at 2:52 am #42906
    This reply has been set as private.
    goody
    Spectator
    Posts: 30
    February 7, 2019 at 8:01 am #42907
    This reply has been set as private.
    Roman
    Participant
    Posts: 3147
    February 7, 2019 at 10:48 am #42908

    sorry for the delay, just was busy with some tasks… what was your solution? thanks for the update