Display full content post

This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 3 years, 8 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #20422
    JessicaFriedling
    JessicaFriedling
    Participant

    Wordpress 5.1
    Theme: Oshine

    Hello,
    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 3 years, 8 months ago by JessicaFriedling JessicaFriedling. Reason: Private info was public
    Attachments:
    You must be logged in to view attached files.
    #20428
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi 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:
    – 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #20463
    JessicaFriedling
    JessicaFriedling
    Participant

    Thank 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

    #20473
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi 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 :)


    #20516
    JessicaFriedling
    JessicaFriedling
    Participant

    Yes thank you so much! This is perfect. You helped a lot 🙂 Best support ever!

    #20518
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


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

You must be logged in to reply to this topic.