• Hi there,

    today I noticed a very very strange error in permalinks. I’m using the latest PL & WP versions. I have published an article that is assigned to a category. The permalink structure looks like /%category%/%postname%/.

    On my homepage I display 5 posts. The simple code looks like:

    <?php if (have_posts()) : ?>
    	<?php while (have_posts()) : the_post() ?>
    		<? the_permalink() ?>
    ...

    Now the strange: ONLY the first call of the_permalink() ignores the permalink structure. All other are working as expected. Several times I’ve updated the structure and made a manual rewite flush etc. I also created and deleted posts with different categories etc. Allways the same problem.

    I’m pretty sure it hase to to with PL, because after deactivation everything works fine. But now I have really no idea what is happen and how it can be fixed.

    Does anybody has an idea please…?

    https://wordpress.org/plugins/polylang/

Viewing 1 replies (of 1 total)
  • Thread Starter fokus3

    (@fokus3)

    I played a bit arround but I can do whatever I want. The first post permalink is empty. I also deactivated ALL plugins and disabled my function.php, so that the system is clear as much as possible.

    When PL is activated the /%category%/ ist not shown in the very first interation of the loop.

    Please can you help?

    regards,
    lars

Viewing 1 replies (of 1 total)

The topic ‘Very strange permalink error’ is closed to new replies.