Home>Support>Drop-down menu in widget

Drop-down menu in widget

By George D., 9 years ago. Last reply by Daniel, 9 years ago.

Hello,
I would like to create a widget that is a drop-down of all posts from a single category ordered by the time they are posted.

I have tried the solution described here: https://wordpress.org/support/topic/drop-down-list-of-posts-from-a-category?replies=23, but it just renders my website blank & tells me there’s a parsing error in the functions.php file on a line above my inserted code.

Can you help me to add this widget?

Thank you,
George

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 5 months ago Magus
    Hi, I Work Here

    Hi BBrz

    I have wrapped this into a plugin for you which you can download here.

    http://test.magistercs.co.uk/wp-content/uploads/2015/04/category_widget.zip

    Please remove all your custom entries and upload and enable this as a plugin.
    You will then have a new widget called ‘Category Posts Widget’. Just insert this on the page where needed.

    Hope this helps

    Magus

  2. 9 years, 5 months ago George D.

    Hello Magus,

    Thank you very much.
    It works like a charm.

    Thanks again and have a nice evening,
    George D.

  3. 9 years, 5 months ago Alexandra Baciu-Giula

    Hi Magus,

    Wonderful thing you did there.
    Maybe you could post this to the WordPress.org repository so more people could enjoy?

    Cheers.
    Alexa

  4. 9 years, 5 months ago Magus
    Hi, I Work Here

    You are welcome George.

    Hi Alexa,

    I would not feel comfortable posting this to the repository as it was just made from code supplied by someone else. I would not like to steal the credit for the code or the idea. Doing this was just the best way of dealing with the issue without having to customize any theme files.

    Magus

  5. 9 years, 5 months ago Daniel
    Hi, I Work Here

    Hi George

    Am glad you are making progress in developing your site

    Always feel free to open a new thread whenever you require support

    @Magus much appreciated

    Cheers

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More