• In the post template I use php code to display the posts from a specific category in a post.
    So in a post (lets call that mainpost) the posts of category A should be displayed (we’ll call them subposts)
    This works fine except that when I add an new subpost in that specific category it does not get added to the mainpost.
    For that I have to go to the excisting mainpost and load the post template again. But then a new mainpost is created instead of updating the excisting.

Viewing 1 replies (of 1 total)
  • Plugin Author Clifton Griffin

    (@clifgriffin)

    Hi Edwin,

    This seems like a misunderstanding about the purpose of PHP in templates. The PHP is supposed to run on template load, not each time the post is loaded.

    If you need dynamic content in a post, you are probably going about it the wrong way. I’d use the WordPress template system to accomplish this.

    Clif

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin works fine except php’ is closed to new replies.