@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
Thread Starter
Julian
(@jm300)
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!
Thread Starter
Julian
(@jm300)
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!
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.
getting the same error, a fix would be great. I’ll check permissions in the mean time
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:)