• I have created several posts that are put in several categories. I have configured permalinks as “/%category%/%postname%/”.

    When I view a page, for instance, https://www.example.com/categoryname/article-name/, then it won’t show the content. It will only show what is described in the template and the header, but it won’t show the content from the post.

    It says at https://codex.www.ads-software.com/Using_Permalinks that %category% does not work correctly with some implementations of mod_rewrite in Apache versions prior to 2. According to phpinfo(), I’m using:
    Apache Release 10331100
    Apache API Version 19990320
    I don’t know which version this is.

    Mod_rewrite is enabled on the server and has the permissions 666.

    Can anyone tell what is causing the content not to show?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have a link? I just clicked around the blog in your profile and everything seems to be working just fine.

    Thread Starter anandg

    (@anandg)

    It’s not the url from my profile. Can I send you the url?

    post the link here and you’ll be able to get the help you need….

    Thread Starter anandg

    (@anandg)

    The link is https://www.chrismochtar.nl/anand/rolandinus/

    On the left is the navigation that I have created manually.
    These categories all have a Category template, but that is never shown. I always see the Main Index Template.

    Category ID 2 is “Activiteiten” which has 4 posts.
    Unfortunately the code <?php query_posts('cat=2'); ?> gives no output.

    The code get_category_link(2); also doesn’t give the correct output.

    The code for Masterclass is:

    <?php
    $cat8 = $wpdb->get_row("SELECT cat_name FROM $wpdb->categories WHERE cat_id = 8");
    $posts = get_posts( "category=8&numberposts=4" ); ?>
    <?php if( $posts ) : ?>
    <li><a href="#"><?php echo $cat8->cat_name; ?></a>
    <ul>
    <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
    <li><a>"><?php the_title(); ?></a></li>
    <?php endforeach; ?>
    </ul>
    <?php endif; ?>

    But content isn’t shown. It continues to show the Main Index Template instead of the content from the post that is clicked and the category template the post belongs to.

    Thread Starter anandg

    (@anandg)

    This url works and retrieves all the posts from the category
    https://www.chrismochtar.nl/anand/rolandinus/index.php?cat=2

    But this permalink url doesn’t work:
    https://www.chrismochtar.nl/anand/rolandinus/activiteiten/
    (activiteiten has the category id 2)

    I’m having the same problem, has anyone figured this out?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Opening permalink doesn’t show content on page’ is closed to new replies.