• Resolved alederodesign

    (@alederodesign)


    Hello,
    i see different numbers of related post, sometimes 5 sometimes 9 sometimes more. Why i cant’t see always the same number of related post?

    Thank you

Viewing 13 replies - 1 through 13 (of 13 total)
  • Theme Author Richie KS

    (@rkcorp)

    depend on how many related post to show in customizer->general->posts->how many related post?
    if set to 9 then, if the current post’s related post had 9 posts then it will show 9, if not it will show lower count. basic math:)

    Thread Starter alederodesign

    (@alederodesign)

    Yes Richie,
    i know this but the problem is that in some articles it shows more than 9.

    Thank you again

    Theme Author Richie KS

    (@rkcorp)

    any live link?

    Thread Starter alederodesign

    (@alederodesign)

    Hello,
    can you check this one?
    https://www.alesitiprova.it/controsoffitto-_15/

    I have set 9 related post in the customization but if you see below this post you can see 10 related post boxes

    Thank you

    Theme Author Richie KS

    (@rkcorp)

    no idea what happen here. would it make a different if you set them to 3? is it also had extra 1 related post?

    Thread Starter alederodesign

    (@alederodesign)

    It’s behaving in a wired way.
    If i disable related posts it’s ok, no related posts appear.
    It seems there are problems with the number of related post, because when i enable the related post (any number) it shows 10 or more.

    Another question:
    where i add the script to make google ads responsive? In the custom.js it’s ok?

    Thank you

    Theme Author Richie KS

    (@rkcorp)

    try check wp-admin->posts->category, and see if the category count is correct, not all 0, sometime when wp update, the cateogory term for posts need refresh or update post.

    #google responsive
    google adsense script is auto responsive if you enter the correct adsense responsive code, not theme related.

    Thread Starter alederodesign

    (@alederodesign)

    Maybe you mean this one?

    /** WordPress Administration Bootstrap */
    require_once( dirname( __FILE__ ) . ‘/admin.php’ );

    $parent_file = ‘edit.php’;
    $submenu_file = ‘edit.php’;

    wp_reset_vars( array( ‘action’ ) );

    if ( isset( $_GET[‘post’] ) )
    $post_id = $post_ID = (int) $_GET[‘post’];
    elseif ( isset( $_POST[‘post_ID’] ) )
    $post_id = $post_ID = (int) $_POST[‘post_ID’];
    else
    $post_id = $post_ID = 0;
    `

    Theme Author Richie KS

    (@rkcorp)

    not quite sure what this code is?

    try check wp-admin->posts->category, and see if the category count is correct, not all 0,

    Thread Starter alederodesign

    (@alederodesign)

    It’s an extract of the post.php file which is located in the wp-admin folder.
    I cannot find what do you mean: wp-admin -> posts -> category

    They are folders or pages?

    Theme Author Richie KS

    (@rkcorp)

    i mean left menu item, posts->category, its in the your site’s /wp-admin/

    Thread Starter alederodesign

    (@alederodesign)

    Yes it’s ok, any category has a different count.
    I was thinking that I’m using MesoColumn theme with the XML file i have imported from the old website with all posts, pages, comments and categories.
    Maybe i have imported also the old related post count? Is this possible?

    Thread Starter alederodesign

    (@alederodesign)

    Ok i have solved with plug-in

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Different number of Related posts’ is closed to new replies.