• Is there a public function I can use to set the page-links-to link from within the theme when a post in my custom post type is created?

    Alternately I can hook into some else that will check and set the links I need on the custom post type.. like a cron hook.

    I made an SPA faq system for a custom WordPress theme. It almost ready for to be handed over to the client. The trouble is we are using page-links-to for many other parts of the site and I need to set the permalinks automatically for the FAQ posts.
    You can see the FAQ system here.
    http://www.crosscamp.us/members-only/faqs
    Entering terms into the search form will create a drop-down with matching post titles. The permalinks need to be in a #slug format like:
    http://www.crosscamp.us/members-only/faqs/#how-do-i-get-access-to-the-parking-lot or simply:
    #how-do-i-get-access-to-the-parking-lot

    I found the post metadata that your plugin uses.. I noticed that only setting the permalink using the form on the post edit screen and updating the post will actually result in the link being set. There is some sort of cache involved.

    https://wordpress.org/plugins/page-links-to/

  • The topic ‘Add new permalink to post via API?’ is closed to new replies.