I've been doing some research online and I think I can ask the question a little better.
I'm looking for a way to add the functionality of
<?php wp_pagenavi( array( 'type' => 'multipart' ) ); ?> to the content of a post through
add_filter or maybe
add_action so that it can come before other plugins which add to the content of posts.
In other words, I have two plugins which add things to the content of the post. My Single Post template has the following:
<?php the_content(); ?>
<?php wp_pagenavi( array( 'type' => 'multipart' ) ); ?>
If I understand it correctly, those two plugins add things after the_content and then the page navigation links are added last. I tried rearranging the order plugins load but that doesn't do anything because the WP-PageNavi plugin doesn't automatically add anything to the_content.
I tried adding the following function:
<?php add_filter( "the_content", "wp_pagenavi( array( 'type' => 'multipart' ) )", 1 ); ?>
But it spat out an error at me on the site. I'm clearly not very good at this, but what I was trying to do was call the pagination function after the_content and set its priority to 1.
I would appreciate any help with this :)