Support » Plugin: WP Native Articles - Facebook Instant Articles Plugin for WordPress » You can turn off related articles?

  • Resolved armandoap

    (@armandoap)


    Is it possible to deactivate related items?
    Many of my articles are not instant, and when it generates automatically the related ones are generating user leaks.
    Is it possible to deactivate this functionality so that no related article comes out?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author OzTheGreat

    (@ozthegreat)

    Hi,

    Sorry for the delayed reply, I was away all last week. Facebook will add some at the bottom anyway, there’s nothing we can do about that, but to remove the ones we set just add the code below to your theme’s functions.php file. It will stop the plugin settings related articles for all new posts from now on.

    function wpna_custom_remove_related_posts( $query ) {
    $query[‘post__in’] = array( -1 );
    return $query;
    }
    add_filter( ‘wpna_facebook_article_related_articles_query’, ‘wpna_custom_remove_related_posts’, 10, 1 );

    All the best

    Thanks very much 😀

    armandoap

    (@armandoap)

    PHP Warning: Use of undefined constant ‘wpna_custom_remove_related_posts’ – assumed

    Plugin Author OzTheGreat

    (@ozthegreat)

    Hi,

    You’re probably missing quotes around it, make sure it’s got single or double quotes around it and that should sort it.

    All the best

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘You can turn off related articles?’ is closed to new replies.