• Resolved Kerri

    (@kerri9494)


    I’m trying to create a newsletter with MailPoet. I have created a custom post type, and wish to include some of those custom posts in my newsletter, but the individual posts aren’t showing up for inclusion in the Post Selection sidebar, so I can’t add them to my newsletter.

    1) I have 'exclude_from_search' => false in my custom post type function.
    2) The custom post type does appear in the drop-down list in the Post Selection sidebar, and I’ve selected it.
    3) All the posts I have of this type are currently in draft mode, and I have “draft” selected in the sidebar.
    4) I’m using Advanced Custom Fields to manage the custom posts’ fields.
    5) Standard posts and pages show up in the Post Selection list just fine if I choose “Posts” instead of my custom post type, it’s only the custom posts that aren’t showing up.

    Is there any step I’m missing? Does MailPoet handle ACF-generated custom posts differently than regular posts? Thanks for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Dani F. a11n

    (@danielinhou)

    Hi there @kerri9494 ????!

    Thank you for reaching out to MailPoet Support!

    Is there any step I’m missing? Does MailPoet handle ACF-generated custom posts differently than regular posts? Thanks for your help.

    I have reviewed the steps that you have listed and I think that the post should be included.

    I see that there was an issue that we fixed on version 3.88.2 that was affecting posts with the DRAFT status. Can you please confirm which version you are using and, if it is older than 3.88.2 update and see if it works?

    Please keep us posted, we’ll be glad to keep troubleshooting this issue with you.

    Thanks

    Cheers!

    Thread Starter Kerri

    (@kerri9494)

    Thanks for the quick reply. I’m on stable tag 3.88.2.

    I’ve also published one of my draft posts, and then selected “Published” posts in MailPoet (for my custom post type), and the published post isn’t showing up, either.

    https://pasteboard.co/i7fEI9qCJckE.png
    https://pasteboard.co/mZHHhVGvtfk4.png

    Are there any arguments that a custom post type would definitely need to have or need to have omitted during registration (other than exclude_from_search) for MailPoet to recognize it?

    Plugin Support Dani F. a11n

    (@danielinhou)

    Hey again @kerri9494 , thanks for the update!

    I am asking our dev team for advice to see if there are any other parameters that need to be included.

    Once we have some news about what the next steps are, we will get back to you.

    Thanks for your patience.

    Plugin Author MailPoet

    (@mailpoet)

    Hi @kerri9494,
    sorry for your troubles.

    > I have ‘exclude_from_search’ => false in my custom post type function.

    I have currently two questions:
    * Is the public value true when you register the post type?
    * During which hook (It should be init) do you register your post type?

    To be able to replicate the issue, can you send me the code, with which you register your post type, that would be very much appreciated.

    Thanks again for your patience.

    Thread Starter Kerri

    (@kerri9494)

    That was it! I hadn’t explicitly set public to true (and it defaults to false). Adding

    'public' => true,

    to my post type arguments made MailPoet able to see the posts, and it works now.

    Thanks very much for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Posts Not Appearing’ is closed to new replies.