meattle
Forum Replies Created
-
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] YARPP cause error papge@gale13 glad to hear and thanks so much for confirming!
@bcwint00 Yeah, got you 🙂 Just wanted to leave the correction for others who stumble upon this post.
@bcwint00 in your original example (first post of the thread), you’re including the path by using “get_stylesheet_directory(). This was not needed.
Your example (incorrect):<?php
if (function_exists('yarpp_related')) {
yarpp_related(array(
'template' => get_stylesheet_directory() . '/yarpp-template-bottom.php', 'limit' => 4
));
}
?>The YARPP shortcode wraps the
yarpp_relatedfunction.Correct:
<?php
if (function_exists('yarpp_related')) {
yarpp_related(array(
'template' => 'yarpp-template-bottom', 'limit' => 4
));
}
?>Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] YARPP cause error papgeHi @gale13 ping. Were you able to try the above?
Usage of
templatein youryarpp_relatedfunction example was incorrect. No need to specify the path. For example:<?php
if (function_exists('yarpp_related')) {
yarpp_related(array(
'template' => 'yarpp-template-photoblog', 'limit' => 4
));
}
?>Your YARPP Custom Template file must be in the active theme’s main directory in order to be recognized by YARPP. The path is hardcoded for security.
'template' => 'thumbnails', // which theme/custom template to use. Built-in ones include "list" and "thumbnails", or the name of a YARPP template file in your active theme folder starting with "yarpp-template-". Example: yarpp-template-videos or yarpp-template-videos.phpIf you’re running outside the loop, we encourage setting
reference_id<?php echo do_shortcode('[yarpp reference_id=123]'); ?>…to show content related to post 123
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] YARPP cause error papge- Which caching plugin are you using?
- Please try to clear the YARPP cache to see if it helps.
- Also try – updating the “Display only posts from the past” setting. Try unchecking this option to see if it helps.
ps. I’m on planes for the next day and won’t be able to look at the code until Weds. Just gathering info and basic debugging right now.
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] YARPP cause error papgeHi @gale13
- What version of YARPP do you have running?
- What version of PHP?
- Have you tried to delete the YARPP cache? (bottom of settings page)
- Clear any site caches – ex. if you have a caching plugin?
Forum: Reviews
In reply to: [YARPP - Yet Another Related Posts Plugin] Useful plugin.Hi @dwarrel66
Your theme’s stylesheet is likely the culprit and not YARPP. If you share the url to a sample page where YARPP is active, we can provide some custom CSS to override what may be a conflict with an eager theme.
YARPP also supports custom Related Posts templates.
Hi @raylady434, since there hasn’t been any activity on this thread for some time, we’re marking it as resolved. If you’re still experiencing the gateway error issue after installing the plugin, please feel free to re-open this topic.
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] Only the default image appearsHi @mbruno YARPP’s thumbnail view requires that a WordPress “featured image” be set for each post. Do you have this setup for your posts?
Take a look at – https://www.hostinger.com/tutorials/wordpress-featured-images/
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] Open link in other tabYou can also achieve this by creating your own custom YARPP theme.
The YARPP custom template feature allows you to easily customize look and feel using the same coding conventions and Template Tags as in WordPress themes.
Your YARPP Custom Template file must be in the active theme’s main directory in order to be recognized by YARPP.
If your theme did not ship with a YARPP templates, move the files in theÂyarpp-templates directory which ships with YARPP into your active theme’s main directory.
Be sure to move the files (which must be namedÂyarpp-template-….php) to your theme, not the entire directory. There is no limit restriction on custom templates.Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] Open link in other tab