Forums Forums Search & Filter Pro Showing full custom posts in the search

Viewing 8 posts - 1 through 8 (of 8 total)
  • Anonymous
    #77432

    Hello, and nice plugin!

    Well, i have Custom Type Posts from Pods and from CPTUI.
    And want to make a search page just like your Demo Movies, but I’m having troubles. I already activated the HAS ARCHIVE for bot. In a page I put the search shortcode and the show=”results” shortcode, but the page shows only the Title and the Description os every post, I can’t see my custom fields using any of the two plugins mentioned.

    In other uses besides the search, I can see the custom fields from Pods normally, using the Pods template. But in the archive page used for the search they don’t show up.

    In the CPTUI custom posts I can never see my custom fields.

    Any help is apreciated, thanks already for you Time.

    Trevor
    #77435

    In the Display Results method, which one are you using?

    Anonymous
    #77437

    Thanks for the quick answer!

    I’m using the Shortcode method

    Trevor
    #77439

    Great, then you can make a custom results.php. See the documentation here on how to start.

    Where it shows the WordPress function the_excerpt, use the_content

    Move the bits around, change the HTML tags, add HTML markup, add theme CSS classes, delete bits, as you need.

    Anonymous
    #77441

    Nice!

    Now I already see the whole Description of my post

    Any tips of how I add my other Custom Fields ?

    Trevor
    #77443

    If they are acf fields, then something like:

    <?php echo get_field('field_name'); ?>
    
    Trevor
    #77445

    I would add that the WordPress Codex is your friend here, as it often includes user submitted code snippets that are ideal.

    Anonymous
    #78711

    Thank you very much!!!

    Everything worked just great!

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