Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter GrimPG

    (@grimpg)

    Ok, so this is what I identified as a problem.

    If I put the Front page to show Your latest posts, the navigation works fine.
    However, if I use A static page, navigation stops working.

    Screenshot

    Any suggestions?
    The reason I use a static page is because otherwise my mobile theme doesn’t show any posts. :/

    Thread Starter GrimPG

    (@grimpg)

    function cokcg_news()
    {
    	echo "<div class='footer_box'>";
    	echo "<h3>".__('Vijesti','hbcg')."</h3><ul>";
    	$wp_query = new WP_Query("post_status=published&posts_per_page=4&category_name=snovosti");
    	foreach ($wp_query->posts as $key=>$post){
    		$date = strtotime($post->post_date);
    		$date = date('d.m.y', $date);
    		echo "<li><div class='box-news'>";
    		echo "<a href='".$post->guid."'>".$post->post_title."</a><br/>";
    		echo "- <span>".$date."</span>";
    		echo "</div></li>";
    	}
    	echo "</ul></div>";
    }

    Perhaps this? I looked for “paged”, no results.

    Thread Starter GrimPG

    (@grimpg)

    My theme is a modified Headway theme, so there aren’t many files at all. There is another plugin that adds additional stuff, but once I deactivated it the problem persiststed, so it has to be the theme itself.

    I just used ctrl+f on each line you gave me.
    As you can see, I’m very much a beginner, so any help is welcome.

    Thread Starter GrimPG

    (@grimpg)

    Hello, Mr. Case, thank you for replying.

    I do not have any custom queries, nor could I find wp_query anywhere in the theme, as well as the term “paged”.

    Functions are as you see above, no custom pagination whatsoever.

    It seems that the new update broke the working pagination, but only on homepage, and I am still unable to fix it.

    Thread Starter GrimPG

    (@grimpg)

    May I also add that navigation on other pages (such as search https://www.cok.me/en?s=london ) works just as it should.

    It is only on the main page that navigation always redirects to first page, no matter what number is clicked.

    Thread Starter GrimPG

    (@grimpg)

    This is not the first time that your plugin has broke my site. It happened during the previous update, and then the update before that gave me blank editors, which made the administration mad at me.

    The review is for others so that they don’t fall into same trouble as I did this morning (full-caps email from my boss how the website is always down and how “THIS IS OUTRAGEOUS”).

    Thread Starter GrimPG

    (@grimpg)

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)