• Resolved Topher

    (@topher1kenobe)


    Some of my custom post types are not listed as an option. How can I fix that?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Mej de Castro

    (@mej)

    Hi @topher1kenobe,

    Thanks for reaching out to us. Could you please provide screenshots on your end and please specify the custom post types that arent listed on the Widget Options settings?

    Looking forward to your response!

    Kind Regards,
    Mej, Widget Options Team

    Thread Starter Topher

    (@topher1kenobe)

    My post type has a slug of heropress-essays and the title is simply Essays.

    Upon further review I see you allow php code as well, which I previously used with Widget Logic, so I could do that, but it seems like this is a bug you might want to fix.

    The post type was made with code generated by GenerateWP.com

    Plugin Author Mej de Castro

    (@mej)

    Hi @topher1kenobe,

    Thanks for the screenshot and the additional details. We’ll relay this to our dev team for further verification. For now, we recommend using the Widget Logic feature as a temporary workaround while we investigate a possible fix.

    Also, is there any post type that is available in the Custom Post Type tab that is also generated by GenerateWP.com?

    Thread Starter Topher

    (@topher1kenobe)

    The logic path is working. No, I don’t think any of the post types made that way are working.

    Plugin Author Mej de Castro

    (@mej)

    Hi @topher1kenobe,

    Apologies for the delayed response, and thank you for the update.

    We’ll reach out to our development team to verify the issue. We appreciate your patience and understanding as we look into this further.

    Plugin Author Mej de Castro

    (@mej)

    Hi @topher1kenobe,

    I hope youre doing well. We confirmed with our dev team that Widget Options only includes public post types by default.

    However, you can include additional post types including private or custom ones by using the following filter hook: apply_filters(‘widgetopts_update_global_types’, $types);

    For Example: To include a custom post type like my_custom_type, you can add this to your theme’s functions.php file or a custom plugin:

    add_filter(‘widgetopts_update_global_types’, function($types) {
    $types[‘my_custom_type’] = get_post_type_object(‘my_custom_type’);
    return $types;
    });

    This will make your custom post type available within Widget Options. Let us know how it goes.

    Kind Regards,
    Mej, Widget Options Team

    Plugin Author Mej de Castro

    (@mej)

    Hi @topher1kenobe,

    I hope you’re doing well! Just following up to check if you’ve had a chance to review our previous reply regarding this issue. Please let us know if you need any clarification or further assistance.

    Kind Regards,
    Mej, Widget Options Team

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.