Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #828978

    Hi,

    I need to set a Maximum Length of the content in the Category Arquive Pages. I can’t set to show only the excerpt because there is some fields that I want to show on that pages. I must have full content option in the category arquive pages instead excerpt, but I must set a Maximum Length on that index pages.

    Can you please advise? I send image attached.

    Thanks,

    Frederico

    #829446

    Hey PT0060,

    To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    Best regards,
    John Torvik

    #829472
    This reply has been marked as private.
    #831315

    Hi,

    Sorry for the late reply!
    Please add following code to Functions.php file in Appearance > Editor

    add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);
    function avia_change_postgrid_excerpt_length($length)
    {
       $length = 100;
       return $length;
    }

    Best regards,
    Yigit

    #840812
    This reply has been marked as private.
    #842197

    Hi,

    You are not using the excerpt on the page you have send us, that is why the content is not cuted!
    If you change – it will work properly.

    Best regards,
    Basilis

    #843152
    This reply has been marked as private.
    #844634

    Hi,

    Please try the following filter instead.

    add_filter("the_content", "avf_the_content", 10, 1);
    function avf_the_content($content) {
    	return wp_trim_words($content, 20, '...');
    }

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.