WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields - match title to post title & slug (2 posts)

  1. applegateian
    Member
    Posted 1 year ago #

    Hi guys

    I am using the (amazing) Advanced Custom Fields plugin. This is for users to upload their posts without seeing the regular WordPress post interface.

    Everything works, except for one thing. I need to match the custom field I have created for 'title' to the default WordPress title. I can hide the WordPress title and show mine using <?php the_field('project_name'); ?> however, this does not affect the slug of the page. That means the URL is always ..../2013/01/26/auto-draft-8/ for example - it always saves as auto-draft.

    How do I get my custom title to be (a) the slug and (b) the title of the page without adding in my PHP? (a) is the most important one.

    Thanks!

    IAn

  2. applegateian
    Member
    Posted 1 year ago #

    Update - found this on stackoverflow, but doesn't work so far, any ideas welcome

    http://wordpress.stackexchange.com/questions/61148/change-slug-with-custom-field

Topic Closed

This topic has been closed to new replies.

About this Topic