• Resolved vothrax

    (@vothrax)


    Hi, congratulations on your great plugin. I’ve already given you 5 stars. πŸ™‚

    The only trouble I’ve found is that reviews are shown below my share buttons and related posts plugins and I want them to be shown above them.

    I’ve moved the share buttons plugin using this php code:

    function addtoany_before_my_related_posts( $query ) {
        remove_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', 98 );
        
        if ( $query->is_main_query() && is_singular() ) {
            add_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', 5 );
        }
    }
    add_action( 'pre_get_posts', 'addtoany_before_my_related_posts' );

    But I don’t know any PHP so I don’t know how to set a lower priority for your plugin.

    Thanks in advance.

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Change plugin priority’ is closed to new replies.