• Hi,

    I’ve added this code to the functions.php of my template
    add_post_type_support( 'page', 'excerpt' );

    which allows me to split the text of the pages to two parts and show them on separate parts of the page. But so far I kow this feature doesn’t trigger the excerpt_more hook.

    function wpr_no_more_jumping($post) {
      return '';
    }
    add_filter('excerpt_more', 'wpr_no_more_jumping');

    This simply not working. I need to disable the read more link, because as I said I needed to show the excerpt and main content on the different parts of page, so there is the whole content on one page.

    If I’m wrong and this is not the best approach, please correct me. How can I disable the read more link? I hide it temporarily in the css, but isn’t there a function that allows me to suppress this link?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • split the text of the pages to two parts and show them on separate parts of the page.

    what code are you using for that?

    How can I disable the read more link?

    as the read-more link is not default with excerpts, it might be from your theme;
    what theme are you using?

    Thread Starter MagicFire

    (@magicfire)

    The code add_post_type_support( 'page', 'excerpt' ); will add standard excerpt separate field for page.

    It’s custom made theme (I didn’t make it, I got this site from my predecessor). I doesn’t search my theme, because I thought that read more link is standart part of the excert function. Thanks, I will search my theme for this.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Excerpt for the pages’ is closed to new replies.