• I’m creating posts and need to set the guid based on the primary key of the database table where the post info is coming from. I thought I could just add 'guid' => 'myString' to the post array, but that isn’t working as I had hoped. If I build the guid string by appending something to site_url(), all is fine. If I try to set a non-url string as the guid, WP appends the https:// to it. I would prefer it’s correct in the database as opposed to using a filter after the fact ( get_the_guid ).

    Any ideas?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Create posts with custom guid without "https://" ?’ is closed to new replies.