Support » Plugin: Content Blocks (Custom Post Widget) » Display the shortcode on the Content Block page?

  • Resolved GermanKiwi


    Hi Johan, I have a suggestion/request to make:

    It would be really helpful if the Content Block page (where you see the overview of all your content blocks) could display the shortcode of each post, in a new column of the table there.

    So you’d have the Title, Author & Date columns, and also a Shortcode column too.

    This would make it super-easy to see the shortcode of each one and to copy-and-paste it directly from there to wherever you want it to go.

    What do you think?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Johan van der Wijk


    Hi GermanKiwi,

    You can easily add the shortcodes by clicking the ‘Add Content Block’ button which is displayed above the post editor. It seems to me that that is the most convenient place, don’t you agree?

    View post on



    That’s true, it’s very convenient to have that button in the visual editor. But I think it would also be convenient to have the shortcodes listed directly on the Content Blocks table as well – sometimes it’s helpful to copy a shortcode directly from there because you don’t need to paste the shortcode into a page (therefore you’re not using the Visual Editor) – eg. if you want to paste the shortcode into some other widget or something.

    Also, in the situation that someone has disabled the Visual Editor (which some admins prefer to do, because they don’t like the way that the Visual Editor strips out certain empty tags and they prefer to create the page directly in HTML mode) – in that case, the button isn’t visible, and it would be helpful to have the shortcodes listed somewhere.

    I’ve seen several other plugins do this kind of thing, where they list their shortcodes on the “overview” table of that plugin. 🙂

    Plugin Author Johan van der Wijk


    I still do not understand why it would be easier to navigate away from the post you are editing, go to the content blocks overview page, then copy the shortcode and then go back to the post you were editing to insert the shortcode.

    Note that when disabling the WYSIWYG editor the ‘Add Content Block’ button should still be visible:

    Okay, point taken! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display the shortcode on the Content Block page?’ is closed to new replies.