WPIntell

Source evidence

Shortcode

WP Simple Related Posts · support · 2014-06-27T14:09:00+00:00

complaintsentiment
highseverity
0.96relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 32 rows with source links

12.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
rrabello unresolved
hello, I’m using the plugin and came across a situation. I would put the related posts in one part of my post and not the end, creating a shortcode would help. this may be a possible improvement? thank you. https://wordpress.org/plugins/wp-simple-related-posts/ If you want to make a shortcode for [wp_simple_related_posts] , please add the code in functions.php below: add_shortcode( 'wp_simple_related_posts', 'wp_simple_related_posts_shortcode' ); function wp_simple_related_posts_shortcode() { global $simple_related_posts; if ( !class_exists('Simple_Related_Posts') ) return; return $simple_related_posts->get_reloated_posts(); } Hi horike. I am getting the following error when I use the above code: Fatal error: Call to undefined method Simple_Related_Posts::get_reloated_posts() Can you help? We are also trying to add the related posts on another place of the page instead of the end of the page but the example isn’t working. Looks like you have changed the plugin and moved a part to the class Simple_Related_Posts_Base. But when we do the following: $Simple_Related_Posts_Base = new Simple_Related_Posts_Base(); echo $Simple_Related_Posts_Base->get_reloated_posts(); Nothing is happening. Do you have any thoughts?

Comments

3 shown
horike 2014-07-15T22:27:00+00:00

If you want to make a shortcode for [wp_simple_related_posts] , please add the code in functions.php below: add_shortcode( 'wp_simple_related_posts', 'wp_simple_related_posts_shortcode' ); function wp_simple_related_posts_shortcode() { global $simple_related_posts; if ( !class_exists('Simple_Related_Posts') ) return; return $simple_related_posts->get_reloated_posts(); }

Gal Hadad 2015-05-12T13:02:00+00:00

Hi horike. I am getting the following error when I use the above code: Fatal error: Call to undefined method Simple_Related_Posts::get_reloated_posts() Can you help?

bpanne 2015-06-24T10:46:00+00:00

We are also trying to add the related posts on another place of the page instead of the end of the page but the example isn’t working. Looks like you have changed the plugin and moved a part to the class Simple_Related_Posts_Base. But when we do the following: $Simple_Related_Posts_Base = new Simple_Related_Posts_Base(); echo $Simple_Related_Posts_Base->get_reloated_posts(); Nothing is happening. Do you have any thoughts?