WidgetOptions / widget-options

Additional Widget options for better widget control. Available on
https://widget-options.com/
GNU General Public License v3.0
35 stars 16 forks source link

CPTs no longer show in visibility options #14

Closed paulovsky closed 7 years ago

paulovsky commented 7 years ago

Hello

Recently realized that my custom post types no longer appear on the visibility options.

I am using Toolset Types.

I'm a newb, please advise me on how to troubleshoot or fix this

phpbits commented 7 years ago

Hi,

The plugin is tracking the newly added post types after it has any items assigned to it : https://github.com/phpbits/widget-options/blob/master/includes/transient.php . Please add item on custom post type then let me know if it works perfectly. Thanks!

Cheers, Jeffrey

phpbits commented 7 years ago

Hi,

Tested and seems like Toolset Types are not returning on get_post_types() function. Does it work on the previous plugin version? And when did it stop working? After Widget Options update or Toolset Types? Thank you very much!

Cheers, Jeffrey

paulovsky commented 7 years ago

Hi,

Both were updated on the same day; I'm afraid I didn't notice after which update it stopped working.

Thank you

phpbits commented 7 years ago

Hi,

You might want to contact the plugin developer. Downloaded Toolset Types too and used get_post_types on the theme to check if it will get the defined post types on the plugin but it doesn't. I hope they can enlightened us with this issue. Thanks!

Cheers, Jeffrey

paulovsky commented 7 years ago

Thanks @phpbits , just did that. Waiting for a reply.

Thanks for your quick reply

phpbits commented 7 years ago

Awesome! Keep me posted. Thanks!

phpbits commented 7 years ago

Hi @paulovsky

Can you please check https://github.com/phpbits/widget-options/tree/develop the update? Tried on my development and seems to fixed the issue. Please do add new post types item to refresh the post type transient set by the plugin. Let me know how it goes. Thanks!

Cheers, Jeffrey

sariha commented 7 years ago

Hi, the fixes on branch develop resolved the issue on our installation ;)

phpbits commented 7 years ago

Hi @sariha

Sounds perfect! Will upload the fixes soon! For the meantime please use this dev version. Thanks!

Cheers, Jeffrey