Reply To: Original Blog Post content get stripped of HTMl and Shortcodes

Home Forums Product Support Forums Related Posts Pro for WordPress Support Original Blog Post content get stripped of HTMl and Shortcodes Reply To: Original Blog Post content get stripped of HTMl and Shortcodes

#2343

Ernest Marcinko
Keymaster

Hi!

1. As I looked at the source code of the page, the problem is that something else is “stripping” parts out of the plugin output. Fragments of the HTML code are missing, which indicates that perhaps some other plugin is conflicting with the content filter. I think it would be safer to put the related posts shortcode straight to the template instead of using the “Show the plugin under content” option, because it looks like that some other function is hooked after the related posts pro functions – and it would be extremely hard to trace which one and where exactly.

Rather you should try to insert the shortcode straight to the theme. The themes single.php file is usually responsible for outputting the single post or page content. I'm not sure how familiar you are with wordpress, or coding, but you should try to put the shortcode somewhere between the content and the comment section of the code.
The php format of the shorcode is the following:

< ?php echo do_shortcode('[wpdreams_rpp id=0]'); ?>

You can find this shortcode for every related posts pro intance on the top of the settings page.

Don't forget to turn off the “Show plugin under the content” option, to avoid duplication of the code: https://i.imgur.com/1RmZHeR.png

2. I think you put the code somewhere else, because the error indicates line 421, which is far from line 843. You should check that again please. The code should be put to line 843.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)