Can't work out how to put the footnotes so they aren't the very last thing in the content area. Is there a shortcode to manually put the footnotes somewhere so you can have further content below them?
Can't work out how to put the footnotes so they aren't the very last thing in the content area. Is there a shortcode to manually put the footnotes somewhere so you can have further content below them?
I agree that this is a problem because there are lots of other plugins that insert things at the end of the post but before the footnotes, such as social sharing buttons, or GD rating buttons.
Does anyone have to knowhow to implement this quick fix?
Did you ever figure out a fix for this? I'm having the same issue.
There seems to be enough demand that I should take a look at the code.
Yeah, not just on this footnote plugin, but it seems to be a common request for other footnote plugins as well. It doesn't look like anyone has been able to deliver yet though.
Silly me, it's a simple fix: they already have an option called priority.
Change the default 11 to 1, and you're set.
Sorry but how does that help the issue?
@turkeyphant Sorry, I misread what you wrote. I guess you want to put the footnotes in the middle of the content? I just wanted the footnotes at the end of the content but before the other plugins.
@Chris Brennan are you looking for the same thing as turkeyphant?
@huyz - I wanted to position them at arbitrary positions within the content.
@huyz - Yes, I'm looking for the same thing as turkeyphant. I'm writing encyclopedic articles in which I want to put a bibliography after the endnotes, so I would like to be able to place the endnotes in other locations on the page. It seems like a shortcode would be the best way to accomplish this, although I'm not sure how to modify the plugin to accomplish this. It seems like a feature that users of other footnotes plugins are requesting as well, although so far no one has been able to deliver.
After some investigation, I don't think it would be very hard.
If there are no surprises, this is maybe 1-2 hours.
Any news, huyz?
I was hoping someone else would do it, because I have so many other things on my plate. :)
That's why I gave the above instructions.
I guess you folks are waiting on me then.
Ok, I'll see what I can do, then.
Ok, done. You can now use a [footnotes] shortcode anywhere on the page with my modifications.
Check out: http://huyz.us/2011/wordpress-footnotes-anywhere-in-the-content/
@Chris Brennan
Can you show me posts where others may have requested this feature? I'd like to notify them.
Submitted enhancement request to Trac: http://plugins.trac.wordpress.org/ticket/1345
Beautiful! Seems to work perfectly - thanks so much. I've notified the author too.
Ooops, spoke too soon. Doesn't play nice with the Text Replace plugin which uses codes like :wp: to replace with "WordPress".
Also doesn't seem to remove the footnotes at the end of the page sometimes so you end up with the footnotes twice.
What happens with Text Replace?
As for the double footnotes, I'm not very familiar with the order in which the content gets filtered and replaced. There are so many filters that take effect: WP's built-in ones, any shortcodes, and additional plugins such as ones that add sharing buttons. What surprised me when I coded it was that the footnotes were being appended to the end *before* the shortcodes were invoked. I found that unnatural. So there's probably something I don't understand about the order of filters.
Without seeing your code, I can probably handle both cases: the shortcode gets processed before and the shortcode gets processed after the original plugin attempts to append the footnotes. So let me try that and update it.
What happened for me is that using Text Replace within footnotes didn't work.
1. The footnotes appeared where I put them but also at the end still.
2. The first set of shortcode footnotes only had one text replacement work properly - the other didn't. The second set worked with all text replaces happening properly.
2. This is with the same plugin? In the internal set of footnotes, Text Replace replaced one shortcut but not another? That's odd.
CORRECTED: I meant "the internal set of footnotes", not "plugins"
For wp-footnotes, what is the priority you have set in your options?
And if Text Replace has the same option, what's the priority on that?
2. This is the same conflict with Text Replace.
e.g. in the first set of footnotes TR replaced all instances of :wp: with WordPress but left all instances of :pw: as :pw:. Weird I know.
Footnotes priority is default - 11. TR doesn't have that option.
Ok fixed.
I can't use the built-in shortcode mechanism -- that filter is stuck at priority 11.
So in order to respect wp-footnotes' priority option, I had to replace shortcodes on my own, at the right priority.
I couldn't replicate the half-conflict with Text Replace, but this update should fix that problem as well.
That looks brilliant now - thanks again!
This topic has been closed to new replies.