Home Forums Newsletter Plugin Support How to include only custom post type?

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #7701
    mx55mx
    Member

    As the title says. How do I include custom post type in newsletter?

    Thank you.

    #7706
    Stefano
    Keymaster

    You need to change the theme (better, create a new one for you) and on get_posts() call add the filter “post_type=>’you type'”.

    Stefano.

    #7708
    mx55mx
    Member

    OK, which file I have to modify? Thank you in advance.

    #7716
    Stefano
    Keymaster

    You should modify the file theme.php of the theme you are using. Take a look to this page.

    https://www.thenewsletterplugin.com/plugins/newsletter/newsletter-themes

    Stefano.

    #7721
    mx55mx
    Member

    Will try it tomorrow. Thank you for a great plugin and all your help!

    #9264
    ablova
    Participant

    Is it posible to include the content of a specific page?

    #9265
    ablova
    Participant

    Within a page I have specific script that pasting it directly is not displayed on the email.
    Thanks for the help!!

    #9267
    Stefano
    Keymaster

    Og course the script is written to “live” in a page context, it’s normal that it cannot work on a newsletter.

    #9277
    ablova
    Participant

    Is there a way to solve this? Thanks again for the help

    #9338
    Stefano
    Keymaster

    I don’t know, since I don’t know how the script for custom post types you use is made. Can you give me some examples?

    #10973
    ablova
    Participant

    It’s just a simple page within the same domain, and need to include it as a frame on the newsletter.

    #10974
    ablova
    Participant

    Maybe this will help me explain. On the bottom of my newsletter I want to include the Content of an specific page within the wordpress installation. (Example ID 17305 being this ID for a page)
    And by using the iframe the whole content of the page will be included, but I only need the content/body.

    #10980
    Stefano
    Keymaster

    You cannot add iframes on newsletter, they won’t show. Why not add the content once creating a Newsletter dedicated theme?

    #47194
    venturegurukool
    Participant

    Thanks for the info Stefano. I have a similar issue and no one is replying to my post 🙂 – https://www.thenewsletterplugin.com/forums/topic/can-i-compose-a-newsletter-with-multiple-sections

    I used the drag and drop composer to create a newsletter with 2 sections. Where does this editor save the theme/newsletter so that I can include the post type filter.

    If that cant be done – can I add another section to one of the themes included so I can add the filter to theme.php.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.