[Resolved] Is it possible to make GP to ignore "more tag"?

Home Forums Support [Resolved] Is it possible to make GP to ignore "more tag"?

Home Forums Support Is it possible to make GP to ignore "more tag"?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #874764
    Andrei

    This is follow up question to my earlier problem – https://generatepress.com/forums/topic/block-archive-view-always-shows-first-picture-from-the-post-along-with-feature/

    Removing “more tag” does solve the problem… unfortunately, my site has more than 300 posts and it am really not looking forward editing every single one of them πŸ™

    Is there way to instruct GP to ignore “more tag”?

    Cheers,
    Andrei

    #875026
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try this function:

    add_filter( 'generate_more_tag', '__return_false' );

    Let me know πŸ™‚

    #875255
    Andrei

    Hi Tom,
    Thanks for quick reply.

    Your suggestion worked beautifully (maybe one day you can make this a configurable option?).

    For future references:

    I have edited two files:
    – index.php (we are using “list of recent posts” as an index page)
    – archive.php

    In both cases I have added
    add_filter( 'generate_more_tag', '__return_false' );

    just before

    get_header(); ?>

    line at the top of the file.

    #875259
    Andrei

    Sorry, forget to mark as resolved.

    #875767
    Tom
    Lead Developer
    Lead Developer

    Instead of adding that to those files, you can add it using one of these methods: https://docs.generatepress.com/article/adding-php/

    Glad I could help! πŸ™‚

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