Support

Account

Home Forums General Issues Use value from relationship field in custom post type slug

Helping

Use value from relationship field in custom post type slug

  • I have twoo content types :
    1.gallery
    2.picture

    For example
    i create a new gallery page with the name “project1” and after i crearte a new picture page with tha name “dog”.
    i use relationship field for select which gallery it belongs, is mark in the list >
    project1

    ant its work ok butt i hava problem with the picture slug
    i want this slug : http://www.mysite/project1/dog

    How can I do this?
    in the contant type optins in the functions.php file?
    how i add relationship field value to the picture page slug/url

    ,Thanks

  • Hi @gabi83f

    I’m afraid this is a general WordPress question because ACF doesn’t do anything with post slugs. Please ask it in the WordPress forum.

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Use value from relationship field in custom post type slug’ is closed to new replies.