Viewing 6 replies - 16 through 21 (of 21 total)
  • havaco

    (@havaco)

    Hey keesiemeijer,
    I did not mess with the plugin.
    So I cannot answer your question.
    Can you let me know what to look for and I’ll try to locate it?
    Thanks,
    Hava

    Plugin Author keesiemeijer

    (@keesiemeijer)

    I don’t see the code you posted in the child theme functions.php file

    
    //Changing Related_posts_position to after_post_content
    add_filter( 'the_content', 'add_related_posts_after_post_content',999 );
    function add_related_posts_after_post_content( $content ) {
     
        //check if it's a single post page.
        if ( is_single() ) {
     
            // check if we're inside the main loop
            if ( in_the_loop() && is_main_query() ) {
     
                // add your own attributes here (between the brackets [ ... ])
                $shortcode = '[related_posts_by_tax posts_per_page="4"]';
    			$shortcode = do_shortcode( $shortcode );
     
                // add the shortcode after the content
                $content = $content . $shortcode;
            }
        }
     
        return $content;
    }
    havaco

    (@havaco)

    Hey keesiemeijer,
    Of course not. I had to delete it because it caused the error with the “4”!

    Plugin Author keesiemeijer

    (@keesiemeijer)

    Ok let’s check what’s going on.

    Activate the plugin.

    Does the shortcode work when you insert it in post content like normal (when editing a post)? make sure double quotes are like this " and not .

    The plugin should work with RTL sites. I will check if it’s messing with the shortcode.

    havaco

    (@havaco)

    Hey keesiemeijer,
    I never de-activated the code.
    When I add the //Changing Related_posts… to the functions.php files
    I get the
    [related_posts_by_tax posts_per_page=”4″]
    as can be seen in the picture I uploaded.
    The “” are ok too.
    Thanks for your efforts,
    Hava

    Plugin Author keesiemeijer

    (@keesiemeijer)

    I cannot reproduce this issue.

    Are you sure the plugin is activated? If I de-activate the plugin I get exactly what you’re seeing (in a rtl language).

    Please try de-activating all other plugins to see if the issue goes away. Re-activate the plugins one by one until you find the problematic plugin.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Placing related posts after sharing icons’ is closed to new replies.