Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter vertigoooo

    (@vertigoooo)

    I Saw version 1.1.2 released and in the changelog the content length issue was fixed, but it is not fixed on my end. I have the latest wordpress version installed and so the latest plugin version

    Plugin Support kiranpreet

    (@kiranpreet)

    Hello @vertigoooo

    Actually,this excerpt more with link settings automatically applies from your active theme.

    In order to fix this problem,Please add the below mentioned filter hook and callback function in your active child theme .

    function pp_custom_excerpt_length($length) {
            global $post;
            // Set content length only of process posts 
            if ($post->post_type == 'process_posts' && !is_single()) {
                //change it according to your requirement 
                return 100;
            }
            return $length;
    
        }
    
      add_filter('excerpt_length', 'pp_custom_excerpt_length', 999);

    [ Signature deleted ]

    • This reply was modified 7 years ago by kiranpreet.
    • This reply was modified 7 years ago by kiranpreet. Reason: tag added
    • This reply was modified 6 years, 10 months ago by Jan Dembowski.
    Thread Starter vertigoooo

    (@vertigoooo)

    @kiranpreet Hi the excerpt solution seems reasonable, thanks for that, but onto my next question is how can I disable the archive pages and the single pages generated for this post type?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Configuring the custom post type’ is closed to new replies.