Forums

wp_insert_post - keep's changing my theme back to default (1 post)

  1. nicks0r
    Member
    Posted 1 month ago #

    I am pretty sure it is something in my theme, when I use classic it doesn't have this problem, nonetheless I can't pinpoint it.

    If I add a post via the wordpress control panel this problem does not arise. When I add a post using a script w/ wp_insert_post function it changes my theme back the the default wp theme.

    The function executes properly and inserts my data into wp's tables, all would be well but I can't pinpoint as to why it is changing my theme.

    Any ideas??

Reply

You must log in to post.

About this Topic

Tags