• Resolved guileshill

    (@guileshill)


    I tried to embed the shortcode with its controls inside a three column layout also made with theme shortcodes and discovered a conflict. (The shortcode does not play nicely when nested).

    Plan B – I created a sidebar, inserted the widget and then displayed the sidebar content within the three column layout. This worked fine, but, the widget cannot, for example, switch off the heading block as you can with the shortcode itself.

    Do you plan on making the widget as flexible as the shortcode?

    Oh, the point of the three columns is to have three instances of the micro posts announcing news in three different categories.

    https://wordpress.org/plugins/kush-micro-news/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kush Sharma

    (@kushsharma)

    Thanks for noticing this problem, can you elaborate on “does not play nicely?” And yeah I will add these shortcode options to widget too.

    Thread Starter guileshill

    (@guileshill)

    Thanks. Yes, the theme I use, like so many, has a long list of defined shortcodes for general use. When I put your shortcode directly inside a formatting shortcode on the page nothing displays at all. But when I put your shortcode into a widget area sidebar first, and then use the theme’s shortcode for putting that sidebar into the page, it does work.

    Odd really. It seems to dislike being nested just one level down but is quite happy if nested two levels down. This might have nothing to do with your shortcode of course, it could be a theme issue or just a limitation of shortcodes.

    As it happens I have taken this issue in a slightly different direction now – I was aiming to improve access to certain types of content and decided that I was taking the easy way out of an issue that was better resolved through the basic information architecture.

    The site is bourne.gb.com

    Plugin Author Kush Sharma

    (@kushsharma)

    I have added header on/off option in widget now. Is this what you were looking for?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Widget is not as flexible as shortcode’ is closed to new replies.