Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author David Cameron Law

    (@seo-dave)

    If you’ve set the “Show On Ticked” option have you ticked the custom post type under the “Custom Post Types +/-” settings?

    For example if you had a custom post type called “Books” there will be a “Books” tick box, needs ticking when using the “Show On Ticked” option.

    If you don’t see the equivalent of the “Books” tick box for your custom post type I’ll need more details. What you do see, what you’ve tried…

    David

    Thread Starter charrise1977

    (@charrise1977)

    Yes, I see the custom post type called Social Security Policy Papers. I clicked it and set it to show the widget and it doesn’t.

    Plugin Author David Cameron Law

    (@seo-dave)

    That should work 🙂

    Do you know how you generate your custom post types (plugin, custom code)?

    I don’t use custom post types on production sites, so used the examples at https://codex.wordpress.org/Function_Reference/register_post_type for testing.

    If I can get a copy of the code I’ll be able to test to see if there’s something missing in the Display Widgets SEO Plus code.

    David

    Thread Starter charrise1977

    (@charrise1977)

    I am using this plugin to generate custom post types

    Custom Post Type UI. I don’t know how to grab the code.

    Plugin Author David Cameron Law

    (@seo-dave)

    Found the plugin https://.wordpress.org/plugins/custom-post-type-ui/ will test it out to see if there’s something missing in my code.

    David

    Plugin Author David Cameron Law

    (@seo-dave)

    Had a quick test.

    Made a new Custom Post Type with the Custom Post Type UI Plugin and only filled in the top form options:

    Post Type Slug
    Plural Label
    Singular Label

    Changed nothing under the “Additional Labels” or “Settings” options.

    Checked under the widgets page and the new Custom Post Type is listed. Edited a widget and set the widget to “Show On Ticked” and under “Custom Post Types +/-” ticked the new custom post type.

    Created a new Post with the new Custom Post Type, saved it, viewed it and the widget was showing.

    So with the default options set it works.

    Maybe you’ve changed some of the “Additional Labels” options or the “Settings” options which is causing a conflict. If any it’s going to be a “Settings” options, some of them might change the order of when things run.

    You could perform the same test I have, new Custom Post Type with the “Additional Labels” and “Settings set to their defaults. If a new Post added to the new Custom Post Type works (as it does for me) will strongly suggest it’s the “Settings”.

    I’ll have a play around with the “Settings” options, see if I can break the Widgets Display settings from working.

    David

    Plugin Author David Cameron Law

    (@seo-dave)

    I’ve tried all the Custom Post Type UI Plugin “Settings” options and no matter what I set the Display Widget options still worked as expected.

    Have you tried adding a new widget and only change the widget options

    Set to “Show On Ticked”

    Under “Custom Post Types +/-” tick the Custom Post Type

    “Save” widget.

    This will rule out other Display Widget options accidentally set like changing the “Hide Or Show For Everyone” option to only show for logged in/out users.

    After that it’s standard troubleshooting: switch to a default theme, disable plugins one by one as I can’t find anything wrong.

    Let me know if you work out the issue.

    David

    Thread Starter charrise1977

    (@charrise1977)

    I found out how to make it work. It seems the custom post types are functioning like blog posts so I simply added that widget to the blog sidebar and just had it show for custom post types only. It worked!

    Thanks for all of your help. This plugin is awesome!

    Plugin Author David Cameron Law

    (@seo-dave)

    Glad you got it working and thanks for letting me know.

    David

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom Post Types Not Showing Widget’ is closed to new replies.