WordPress.org

Ready to get started?Download WordPress

Forums

WP Publication Archive
[resolved] Dropdown Idea for Filtering (8 posts)

  1. Julian
    Member
    Posted 2 years ago #

    Hi! I really like your plugin. I've been looking for something like this for quite a while now. Perhaps in a future version you can create drop down menu(s) for the frontend user to sort by date, category, etc. This might be a good alternative to shortcodes. Again thanks for a great plugin!

    http://wordpress.org/extend/plugins/wp-publication-archive/

  2. Eric Mann
    Member
    Plugin Author

    Posted 2 years ago #

    @jm300 - Thanks for the recommendation. I've added it to the ticket list on GitHub so I won't forget about it in the future.

    https://github.com/ericmann/WP-Publication-Archive/issues/8

  3. Julian
    Member
    Posted 2 years ago #

    Great! Also I don't know if it is just me but the shortcode in the FAQ to list a specific category didn't work for me. The FAQ says to write the shortcode as categories="cat-1,cat2" where cat-1 and cat2 is the slug. However I got it to work by using categories='cat-1' where cat-1 is the actual name of the category and not the slug. I am not sure if this was a typo but it's working now. Thanks again!

  4. Julian
    Member
    Posted 2 years ago #

    Sorry to bump my post. I have a plugin conflict. I am using the All in One Event Calendar and receive this error on the widget and on the main calendar itself.

    Warning: Missing argument 2 for WP_Publication_Archive::the_title() in /home/stleos/public_html/wp-content/plugins/wp-publication-archive/lib/class.wp-publication-archive.php on line 320

    Do you have any suggestions on how to fix the plugin conflict?

    Thanks!

  5. Eric Mann
    Member
    Plugin Author

    Posted 2 years ago #

    No, this is not an error in WP Publication Archive.

    WP Publication Archive hooks on to WordPress' built-in the_title filter. This filter is defined in /wp-includes/post-template.php on line 118 and takes in two parameters - the title itself, and the ID of the post.

    WP Publication Archive adds a filter to this hook that also accepts two parameters, the title and the ID.

    It looks like All in One Event Calendar is also adding a hook to this filter, but they're adding a hook that doesn't take two parameters.

    If you want to skip this functionality all together, comment out the line that adds the title filter on line 53 in wp-publication-archive.php instead.

  6. David Henry
    Member
    Posted 2 years ago #

    getting the same error, a fix would be great. I'll check permissions in the mean time

  7. Eric Mann
    Member
    Plugin Author

    Posted 2 years ago #

    Jane,

    1. Please don't post comments like this in a forum thread marked "resolved." If you have a new support issue, create a new thread.
    2. Please read my last post in this thread. The error was caused by poor coding in another plugin ... which means there is no fix I can give you unless I know what plugins your site is using.
  8. David Henry
    Member
    Posted 2 years ago #

    Apologies Eric.
    for any non coders search for:
    add_filter( 'the_title', array( 'WP_Publication_Archive', 'the_title' ), 10, 2 );
    and put a # in front.

    Thanks for the Doc Archive plugin:)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic