Forums Forums Search & Filter Pro Dropdown Search for Title of Custom Post Types

Viewing 9 posts - 1 through 9 (of 9 total)
  • Trevor
    #220620

    Are you able to send me a live link/URL to your search page so I can take a look?

    Anonymous
    #220635

    Hi Trevor, sorry, can’t send you a live link at the moment. Other options?
    Thank you!

    Trevor
    #220638

    You want a dropdown select box showing the titles of the posts?

    Anonymous
    #220666

    Yes I do Trevor, exactly. I think it could be done using an ACF field in which duplicating my title manually, but if there is a better solution I’m with you. Thank you!

    Trevor
    #220668

    That is what I would do, but I would add some code in the child theme functions.php file to hook in to the WordPress save_post() function to automatically copy the title across as posts are saved.

    Anonymous
    #220674

    Hi Trevor,
    could you explain shortly what is a code I can use in my case?
    Right now I’ve tried the ACF field and is ok.

    Thank you!

    Trevor
    #220776

    I do not have any examples/snippets for you, so you would need to rely on Internet sources, like this search should give you some ideas:

    https://www.google.com/search?q=stackexchange+wordpress+save_post+copy+post+title+to+custom+field&oq=stackexchange+wordpress+save_post+copy+post+title+to+custom+field

    Anonymous
    #225657

    Ok, thank you trevor

    Trevor
    #225681

    Thanks for getting back to me. I will close this thread for now.

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