1 (edited by matpan3 2017-02-28 15:15:39)

Topic: Cannot show full article when use categories on different page

Hello and i hope someone is still alive here and can help me.

My news have categories. On main site (index.php?page=news) i show all of them. On another page of my site i would like to show only news from category = "30" (index.php?page=2ndpage&category=2ndnews).
I use code:

elseif($_GET['page']=="2ndpage" && $_GET['category']=="2ndnews"){
$category = "30";
include('news/show_news.php');

Everything works fine, news form category 30 are displayed on that page, but when i click to show full article it does nothing - still only shorties are displayed, full article is not loaded. When i delete $category = "30" all news are displayed on page and it is possible to load full article.
Help please smile

Re: Cannot show full article when use categories on different page

The most likely cause to this problem: the fix for the division by zero problem probably messes this up.
So be sure to try FI-DD's fix for that problem first.

3 (edited by noah89 2017-09-18 01:48:16)

Re: Cannot show full article when use categories on different page

I'd like to help you but I am not professional.

Re: Cannot show full article when use categories on different page

helfull content
___
Incall And outcall working girls

Re: Cannot show full article when use categories on different page

I had the same problem. I solved using the simple include code without the category

   <?php
        $number = 2;
        include("cutenews/show_news.php");
    ?>

but when i have to filter a category i use the link page.php?category=ID.