Support » Fixing WordPress » Include Blog-Posts in Page

  • Hello,

    I’ve got a little problem! When people go on a page of my wordpress website, I want them to see the text of this page. But if there is a variable (kalea) in the adress I want to show the oldest entry in a specific category and a next/previous/all article button…

    I imagined to do it this way:

    <?php if (!$_GET["kalea"]):?>
         //show normal content
    <?php else: ?>
        //show post $kalea_post of category $kalea
        //and show
        //previous | all articles | next
    <?php endif; ?>

    Can you help me how to write the code after the else…? Thank you for your help, have a nice weekend,

    yours Yannis

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Include Blog-Posts in Page’ is closed to new replies.