Home › Forums › Backend Issues (wp-admin) › DB query for field via URL › Reply To: DB query for field via URL
Hi @Agrajag
May I ask why you need to wrap all this within a shortcode?
The ACF plugin is best used by editing your theme and using PHP code to render data.
Perhaps you could provide some screenshots to show why the shortcode is needed?
I don’t think WP has a function to find a post via a url (I may be wrong). So I would be more inclined to use a post_id instead.
Thanks
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.