Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Display full content post
This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko 4 years, 5 months ago.
- AuthorPosts
- December 17, 2018 at 1:54 pm #20422
Wordpress 5.1
Theme: OshineHello,
I have made some custom posts that open on the title click on the “coopérateur” page. When I’m doing the research it displays the post title and shows the post in another page. But I would like to open the post as it is in the bottom part of the page and open the post content in the result.
I put some images to show what I would like to have. I tried to do it with custom field but it shows kind of a code but not the category I want to be shown.Don’t hesitate to contact me if you need more informations. There is a password to visit the website but I don’t know how to transmit it in private and not in public.
Kind regards,Jessica
-
This topic was modified 4 years, 5 months ago by
JessicaFriedling. Reason: Private info was public
Attachments:
You must be logged in to view attached files.December 17, 2018 at 4:37 pm #20428Hi Jessica,
Unfortunately I don’t think this is possible without major custom coding. If I udnerstnad correctly, you want to display the post contents within the result itself, but only when to user clicks on it. This is definitely not possible.
You can display the whole post contents by default, by making the following changes:
Best,
– Changing the primary content field to ‘Post content’
– Executing the shortcodes
– Increasing the content character sizes
These will allow displaying the full content within each result, but I am not sure if I can recommend these settings.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 18, 2018 at 5:17 pm #20463Thank you for your quick answer. I tried to change in the settings what you sent but it didn’t show the content. Do you know what the problem could be?
Best regards,
Jessica
December 19, 2018 at 9:40 am #20473Hi Jessica,
You can add the password to the site in your next reply, and mark it as private.
I have checked the the ‘profilcooperateur’ custom post type on the back-end editor, but unfortunately there is no post content field there. Everything is generated via ACF fields, and the post content is empty, that is why the result content is empty. I guess the theme uses a custom template file in order to display these custom structured fields.
You could try using the advanced description field to try to display these field contents.To make it easier for you, I have made a duplicate of the first search instance (search ID=5), and tried to get the ACF field names, and added them to the advanced content field, and configured it like so: https://i.imgur.com/rz8zS2Y.png
Now, in the preview, the results look like this: https://i.imgur.com/hAqMDGx.png
I believe this is very close to what you might need. In the advanced description field I added the following text and HTML, in case you want to make changes to it:[<img width=240 src='{image-profil}'>] [<br><h3>{prenom_nom}</h3>] [<br><h3>{_taxonomy_atelier}</h3>] [<br><h3>{_taxonomy_batiment}</h3>] [<p>{_taxonomy_categoriesprofilcooperateur}</p>] [<br><p>{adresse-atelier}</p>] [<p>{adresse_email_du_cooperateur}</p>] [<br><p>{presentation-cooperateur}</p>] [<br><img width=320 src='{image-presentation-coop}'>] {descriptionfield}
Hopefully this helps a bit.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 20, 2018 at 3:49 pm #20516Yes thank you so much! This is perfect. You helped a lot 🙂 Best support ever!
December 20, 2018 at 5:23 pm #20518You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
-
This topic was modified 4 years, 5 months ago by
- AuthorPosts
You must be logged in to reply to this topic.