Nothing show up in my site
-
I have installed both nrelate Related and nrelate Popular, nothing show up in my site.
Let me know if anything I miss https://nezone.info/
https://www.ads-software.com/plugins/nrelate-related-content/
-
@chitaranjan.thoudam — Thanks for using nRelate on your site! I checked it out and I see the issue.
Our plugin placeholder for both plugins aren’t appearing in your page source, even though I do see that you’ve selected automatic placement to show the plugins at the bottom of your posts.
This is most likely due to your theme. Can you please try using manual placement instead? https://nrelate.com/theblog/2011/12/22/manually-adding-nrelate-code-to-your-wordpress-template/
Let us know if you need more help with this.
– Katrina @ nRelate
Hi Katrina,
I am not quite sure where I can place the codes because I tried putting in single.php after ?> and was showing below footer. Please see both my function and single php and suggest me where I can place manually.My Theme function.php looks like this:
<?php
if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly
define(“THEME_NAME”, ‘allegro’);
define(“THEME_FULL_NAME”, ‘Allegro’);// THEME PATHS
define(“THEME_FUNCTIONS_PATH”,TEMPLATEPATH.”/functions/”);
define(“THEME_INCLUDES_PATH”,TEMPLATEPATH.”/includes/”);
define(“THEME_SCRIPTS_PATH”,TEMPLATEPATH.”/js/”);
define(“THEME_AWEBER_PATH”, THEME_FUNCTIONS_PATH.”aweber_api/”);
define(“THEME_ADMIN_INCLUDES_PATH”, THEME_INCLUDES_PATH.”admin/”);
define(“THEME_WIDGETS_PATH”, THEME_INCLUDES_PATH.”widgets/”);
define(“THEME_SHORTCODES_PATH”, THEME_INCLUDES_PATH.”shortcodes/”);//POST TYPES
define(“OT_POST_GALLERY”,”gallery”);define(“THEME_FUNCTIONS”, “functions/”);
define(“THEME_AWEBER”, THEME_FUNCTIONS.”aweber_api/”);
define(“THEME_INCLUDES”, “includes/”);
define(“THEME_SLIDERS”, THEME_INCLUDES.”sliders/”);
define(“THEME_LOOP”, THEME_INCLUDES.”loop/”);
define(“THEME_SINGLE”, THEME_INCLUDES.”single/”);
define(“THEME_ADMIN_INCLUDES”, THEME_INCLUDES.”admin/”);
define(“THEME_CACHE”, “cache/”);
define(“THEME_SCRIPTS”, “js/”);
define(“THEME_CSS”, “css/”);define(“THEME_URL”, get_template_directory_uri());
define(“THEME_CSS_URL”,THEME_URL.”/css/”);
define(“THEME_CSS_ADMIN_URL”,THEME_URL.”/css/admin/”);
define(“THEME_JS_URL”,THEME_URL.”/js/”);
define(“THEME_JS_ADMIN_URL”,THEME_URL.”/js/admin/”);
define(“THEME_IMAGE_URL”,THEME_URL.”/images/”);
define(“THEME_IMAGE_CPANEL_URL”,THEME_IMAGE_URL.”/control-panel-images/”);
define(“THEME_IMAGE_MTHEMES_URL”,THEME_IMAGE_URL.”/more-themes-images/”);
define(“THEME_FUNCTIONS_URL”,THEME_URL.”/functions/”);
define(“THEME_SHORTCODES_URL”,THEME_URL.”/includes/shortcodes/”);
define(“THEME_ADMIN_URL”,THEME_URL.”/includes/admin/”);require_once(THEME_AWEBER_PATH.”aweber_api.php”);
require_once(THEME_FUNCTIONS_PATH.”tax-meta-class/tax-meta-class.php”);
require_once(THEME_FUNCTIONS_PATH.”init.php”);
require_once(THEME_WIDGETS_PATH.”init.php”);
require_once(THEME_SHORTCODES_PATH.”/init.php”);
require_once(THEME_INCLUDES_PATH.”theme-config.php”);
require_once(THEME_INCLUDES_PATH.”admin/notifier/update-notifier.php”);//remove visual composer notifier
if(function_exists(‘vc_set_as_theme’)) {
vc_set_as_theme($notifier = false);
}add_filter(‘widget_text’, ‘do_shortcode’);
?>And single.php looks like the below
<?php
if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly
get_header();
$post_type = get_post_type();
$sidebarPosition = get_option ( THEME_NAME.”_sidebar_position” );
$sidebarPositionCustom = get_post_meta ( $post->ID, THEME_NAME.”_sidebar_position”, true );if($post_type == “gallery”) {
get_template_part(THEME_INCLUDES.’gallery-single’,’style-1′);
} else {
get_template_part(THEME_INCLUDES.’news’,’single’);
get_footer();
}?>
@katrina@nrelate
I have tried the manual option too but no luck, may be I am not placing the code where that should be, wondering anything wrong I am doing…@chitaranjan.thoudam — We’re taking a look at those files for you now. I’ll update you shortly with what we find.
– Katrina @ nRelate
I have figured it out in my theme and added php lines, now showing in my site.
Thanks
@chitaranjan.thoudam — Thanks for letting us know that you were able to resolve the issue. Both Related Content and Most Popular look great on your site now!
– Katrina @ nRelate
I have changed my site url to https://kanglaonline.com and I have re-indexed the plugin but I don’t both plugin showing, yeah I can see two post from popular plugin in some post thought I have set 5 for each plugin. Not sure why all not showing in all post, so wondering we need to do anything after changing domain.
@chitaranjan.thoudam — Sorry we missed your post. It looks like you’re site is down at the moment, so please let us know once it’s back up and we can take another look at the issue for you then.
– Katrina @ nRelate
- The topic ‘Nothing show up in my site’ is closed to new replies.