Custom Post Widget
[resolved] Title for widget (5 posts)

  1. Radovan
    Posted 5 years ago #


    do you plan to add title for a widget ?

    For example in sidebar/column is reserved block for "Our survey" what can be edited as custom post type, but in widget i can't define a header for this content block.


  2. Johan van der Wijk
    Plugin Author

    Posted 5 years ago #

    I am thinking of adding an options page where you can specify whether to show the title or not. Not sure when I will have time to do so though.

    In the meantime, you can add this functionality by editing the plugin file and add the following code on line 67 (before echo the_content();)

    echo '<h2>' . the_title() . '</h2>';

  3. Johan van der Wijk
    Plugin Author

    Posted 5 years ago #

    Hi Adorei,

    I have just commited version 1.2 of my plugin to the WordPress Plugin Directory. It now includes the option to show the title of the custom post. Let me know if this helps!

  4. Radovan
    Posted 5 years ago #


    sorry, subscribe emails seems dont working :/

    It's better. But wordpress have modest some API and Widgets is one of them.

    I have some ideas to extend this absolutely great plugin.

    First one is: custom templates (for example custom-post-widget.php in theme directory) For example you wanna to use post thumbnails, HTML5/OO CSS hierarchy or something other. I know this should be in WordPress core support.

    And for second: It's only cosmetic. Add widget title (no post title), but next to widget name. Because when you use more and more this widgets (with Dynamic widgets) you are dissapeared.

    I hope i was clearly :)


  5. Johan van der Wijk
    Plugin Author

    Posted 5 years ago #

    I think that the post formats that will be introduced in version 3.1 might help you with the first issue.

    It is definitely a nuisance to be having to expand the widgets to check which is the one you want to edit when you are using multiple instances of a certain widget type.
    Having a widget title is definitely something that would help, but as with your first point this is also something that is out of the scope of my plugin.

    Thanks for your compliments, I would appreciate it if you could rate my plugin ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic