Topic Resolution: Resolved
  • Closed
  • goody
    Spectator
    17.01.2019 at 06:52 #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
    Spectator
    Posts: 3147
    17.01.2019 at 10:44 #42177

    Please provide URL to the archive page. thanks

    goody
    Spectator
    Posts: 30
    17.01.2019 at 11:20 #42182
    This reply has been marked as private.
    Roman
    Spectator
    Posts: 3147
    17.01.2019 at 11:49 #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
    17.01.2019 at 12:36 #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
    Spectator
    Posts: 3147
    17.01.2019 at 12:53 #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
    17.01.2019 at 13:33 #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
    Spectator
    Posts: 3147
    17.01.2019 at 14:03 #42188

    thanks for the update

    goody
    Spectator
    Posts: 30
    06.02.2019 at 02:52 #42906
    This reply has been marked as private.
    goody
    Spectator
    Posts: 30
    07.02.2019 at 08:01 #42907
    This reply has been marked as private.
    Roman
    Spectator
    Posts: 3147
    07.02.2019 at 10:48 #42908

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