• Drop-Down Post List Plugin for WordPress

    This plugin allows you to easily display drop-down boxes containing the posts for specified categories. You can use this plugin by entering the trigger text in a post or page, or by adding the function call directly to your theme files. You can display as many drop-down boxes as you like, and with the use of a little Javascript, the drop-down boxes this plugin creates are ‘jump menus’, which means as soon as the visitor clicks on a post, they will immediately be taken to that page without having to have a ‘submit’ button.

    More info & Download:
    https://www.dagondesign.com/articles/drop-down-post-list-plugin-for-wordpress/

    Note: Version 1.0 has just been released (at the time of this post), and there are currently no configurable options. As I get feedback I will be implementing new options, as well as an options page.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thanks, I’m going to try it! Can you show how to make the template tag conditional, so that if I deactivate your plugin it won’t break my theme?

    <?php echo ddpl_list(#); ?>

    I’m trying to make it like they talk about here,
    https://codex.www.ads-software.com/Managing_Plugins

    <?php
    if (function_exists('FUNCTION NAME')) {
      FUNCTION_NAME();
    }
    ?>
    Thread Starter aleister

    (@aleister)

    Yes, that will work in the theme files ??

    <?php
    if (function_exists('ddpl_list')) {
      ddpl_list(#);
    }
    ?>

    And if you add the code directly to a post or page, you do not have to worry about it breaking anything if you disable it, because it is formatted as an html comment and will be hidden. ??

    Can you confirm that conditional code, because for me it works with just the template tag, but it doesn’t work on the if… function exists method as written above.

    As for the plugin, do you like more feedback on this thread, or your Comments, or doesn’t matter? I am thinking, actually I would kind of like it WITH a “Go” button.

    Thread Starter aleister

    (@aleister)

    Whoops – the call to the actual function should have ‘echo ‘ in front of it, like in the original example ??

    As for feedback, either works. I am most likely to remember to implement requested features if they are in the comments for that page though. When I do add an options page, I will add in the choice of the jump menu, or traditional select box.

    Believe it or not, I’m not sure where to put “echo”. Just not sure where a space is allowed, etc. in PHP.

    The plugin is nice. The options page will help. Another useful option would be a “Label” which is the top-choice of the dd menu, like the header that is showing by default. It could usually be your Category Name, but it could be something else.

    <?php
    if (function_exists('ddpl_list')) {
      echo ddpl_list(#);
    }
    ?>

    this works, thanks again.

    Thread Starter aleister

    (@aleister)

    Version 1.1 has been released ??

    An options page has been added:

    Form Type – You can choose to have the plugin generate a ‘jump menu’, or a traditional list with a submit button

    Button Text – If using a traditional list, this is the button text

    Sorting Method – You can choose to sort by post date (ascending or descending), or post title

    Post Limit – This allows you to define a limit for the number of posts in the list (0 for no limit)

    Add Before – Code added here will be displayed before the generated form

    Add After – Code added here will be displayed after the generated form

    A good update, it works for me. Thanks and you’ll get a tip via your site sometime soon in honor of this long felt need.

    There was a surprise, I hoped “Add Before” would be the first line of the menu (probably the category name). Instead it is for above & outside the menu itself. Can you add the ability to put a “label”, or, what would you call the first line of the dd menu?

    Thread Starter aleister

    (@aleister)

    Yes, it adds the content before or after the form itself. I will add something in for you though – hang on a few ??

    Thread Starter aleister

    (@aleister)

    I just uploaded the new version – I did not change the version number since I already had one update today ??

    In addition to being able to add code before and after the form, you can now add code before and after the list (inside the form). Enjoy!

    Hey, “Add Before Form” and “Add Before List” have the same result – they do the same thing, for me. I have tried both, and it’s the same as before, like a header outside the menu, not a list item in the menu. Any idea?

    Thread Starter aleister

    (@aleister)

    Strange – can I see a link?

    Link sent to you on your Contact form, thanks for checking on this.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘New Plugin: Drop-Down Post List’ is closed to new replies.