• Hi,

    I am creating a theme, everything is good atm i have my posts displaying on a single page.

    I want to add a side widget which displays a link to all the posts on my blog page, and it needs to be orderd by date/month/year.

    Just to mention i have a nice archive template already where if they click a category or a blog users name it shows all there post on a seperate page. But i want a small widget to do the above. Which lists everything on the same page as my usual blog posts by date.

    How can i do this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Do the built-in “Categories”, “Archives”, or “Recent Posts” widgets do what you’re hoping for? If not, you might consider writing your own custom widget.

    Thread Starter OfficialKHAN

    (@officialkhan)

    No they don’t the archives widget shows a drop down menu which i don’t want.

    I just want to list it like this:

    2013
    September
    October
    November
    December
    2014
    January
    February

    How can i create a widget which does this.

    There are a lot of good resources on the Internet for creating new WordPress widgets. Also, I suggest checking out Twenty Fourteen’s Ephemera widget (defined in twentyfourteen/inc/widgets.php) to see how you can use the loop in a widget definition.

    Thread Starter OfficialKHAN

    (@officialkhan)

    I’ve looked for a few, but i cnt find these “good resources” you speak off. Could you link one?

    All four tutorials on this page are pretty good: http://premium.wpmudev.org/blog/create-a-wordpress-widget/ Don’t let the dates fool you, the information is still good.

    Also, the default widgets are defined at wp-includes/default-widgets.php. Check out that file for more information and to see how the default WP widgets are coded.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Blog Posts Date Widget’ is closed to new replies.