Forums › Forums › Search & Filter Pro › ACF or Results.php issue.
Tagged: ACF Post Object Field, template nesting
- This topic has 5 replies, 2 voices, and was last updated 7 years, 5 months ago by
Anonymous.
-
Anonymous(Private) August 16, 2017 at 4:55 pm #126255
Hi There,
Blind to what is going on but it is something I have created and cannot resolve.I am using ACF for custom fields on personnel profile posts. I am using a shortcode return on the primary search page: Location Field Missing
All other fields are returning perfectly with the exception of the Location Field. This is a ACF Post Object. Search and Filter Form is working beautifully, with that exception.Here: Location Field Appears on a straight archive page with one nested template the field does work. (Search Form at the top of this page will return you to my problem page)
Search and Filter is working fine, However on the first example, ‘Location Field Missing’, there is something about my code that is not connecting to my ACF Post Object. This page construction would be ‘Template-Team.php’ >>calling >> template part – ‘content-team.php’ >> which through the post is using the S&F shortcode to return S&F ‘results.php’.
I can substitute other Text Fields for the Location name and there is not an issue, just isn’t liking Post Objects.
Is that layered embedding of template parts causing an issue to accessing my post object? I think I have to simplify something on my part by reconfiguring the ACF Post Object, cannot make it work though. Any insights are appreciated. This may be a question for ACF too, think I have bound myself with an issue that lies in between the two plugins.
Trevor(Private) August 17, 2017 at 11:07 am #126361Hi
I visited both pages given and looked at the location field on both. If you do a search for Appellate, both pages have the location missing.
With the shortcode method, I presume that you have a custom results.php template file in your (child) theme folder, in a sub-folder called
search-filter
?Are you able to show me the contents of that file (if pasted here, it needs to go inside two code tags – the back tick key (to the left of the main keyboard 1 key)?
-
AuthorPosts