papercite icon indicating copy to clipboard operation
papercite copied to clipboard

Not working for one page templates

Open pgigis opened this issue 10 years ago • 7 comments

I installed papercity in my wordpress blog and plugin works great in a single page layout.

Unfortunately in a one page template it seems it can't recognize [bibtext] code. screen shot 2015-01-23 at 10 55 09 pm copy

Any suggestion?

pgigis avatar Jan 23 '15 21:01 pgigis

Try to set the priority of the content processing to a lower value (e.g. -10): in papercite.php, change

add_filter('the_content', 'papercite_cb', -1);

to

add_filter('the_content', 'papercite_cb', -10);

Please tell me if this works for you and I will try to add the plugin priority as a preference.

bpiwowar avatar Jan 27 '15 10:01 bpiwowar

I found this plugin is not working on my Wordpress site which is running Wordpress 4.4.2. The short codes inserted in posts do not generate any citations; instead, the source code of the short codes directly show up on the webpage. @pgigis and @bpiwowar , can you help confirm if this plugin is compatible with the latest Wordpress release if possible? Thanks.

i2000s avatar Feb 11 '16 01:02 i2000s

@i2000s I have no problem running with 4.4.2 - could I see the output of the page?

bpiwowar avatar Feb 15 '16 13:02 bpiwowar

@bpiwowar Please have a look at http://cquic.unm.edu/deutsch-group/research/ . At the end of the page, I put the exact code as you see on the screen. It just didn't render the shortcode. I had put the shortcode in the text editor.

i2000s avatar Feb 15 '16 14:02 i2000s

Maybe there is some interaction with other filters - could you try to change the priority of the plugin by lowering it. In papercite.php, change

add_filter('the_content', 'papercite_cb', -1);

with a lower value (-10, -20, or more).

Could you also tell me what plugins are installed?

bpiwowar avatar Feb 17 '16 10:02 bpiwowar

@bpiwowar I have tried changing the value to -200, but it still doesn't work. One thing I have noticed on my other plugins is that the UltimateMember plugin for making the page of people's directory didn't work properly as well. I have noticed that issue to the UM team, and they are working on it right now. I will report back once they fix the UM issue. In the mean time, if you have other troubleshooting suggestions, I can try them as well. Thanks.

i2000s avatar Feb 29 '16 18:02 i2000s

Seems this is not due to a conflict with UltimateMember...

i2000s avatar Mar 08 '16 22:03 i2000s