Okay
  Public Ticket #3765423
Blog Element Query
Open

Comments

  • matt4market started the conversation

    I'm currently using the Salient theme with a custom post type called "newsletter." When I use the Blog Element in the Salient page builder, it only displays standard "post" entries and doesn’t include my custom post types, despite attempts to modify the query.

    Here are the steps I've taken to troubleshoot:

    1. I attempted to use the pre_get_posts function in my functions.php file to add my custom post type, but the Blog Element still only displays standard posts.
    2. I checked nectar/helpers/blog.php and other related theme files for customization options but couldn't locate any specific query settings for the Blog Element.
    3. I've verified that my custom post type is registered correctly, as it displays on the blog index when using a custom post loop.

    Could you advise on how I might configure the Blog Element in Salient to include custom post types? Alternatively, if there’s a filter or hook available for this purpose, that would be very helpful.

    Thank you in advance for your assistance!

  •  1,918
    Judith replied

    Hi there,

    Thanks for writing to us.

    You should use the Post Loop Builder Element instead as the Blog Element doesn't have the Custom option :

    8799418526.png

    I really hope this proves helpful for you. If you have any more questions or run into any problems, please feel free to reach out.

    Best regards,