Forums

$post == NULL when using category base (1 post)

  1. Tosak
    Member
    Posted 2 years ago #

    Hello!

    I have a post which is a child of a category, which is a child of another category, so the URL is something like this:
    http//:domain.tld/categorybase/category/category/post

    However, the $post variable is NULL here for some reason.. the_ID() etc. returns NULL as well.

    If I remove the category base from the URL everything works as expected.

    What am I doing wrong? Is it possible to get the_permalink without the category base?

    Thanks in advance!

Topic Closed

This topic has been closed to new replies.

About this Topic