Forum Replies Created
-
Oh, good idea! Ok…so here is the code generated that way on the website tab…
<span class=’st_twitter_hcount’ displayText=’Tweet’></span><span class=’st_facebook_hcount’ displayText=’Facebook’></span><span class=’st_fblike_hcount’ ></span><span class=’st_plusone_hcount’ ></span>
<script type=”text/javascript”>var switchTo5x=true;</script><script type=”text/javascript” src=”http://w.sharethis.com/button/buttons.js”></script><script type=”text/javascript”>stLight.options({publisher:’a3fd7349-1e52-4dff-8567-b74f16e9be5c’});</script>
now what? 🙂
If you install the plug in then you get a settings page for it under settings in the WP dashboard. And it lets you adjust the html tags but not wrap them in divs that I can see.
This is not crucial so if you are busy please don’t feel obliged 🙂 You have been so helpful to me!
Yeah that’s what I want to do but the plug in settings strip out the div tags. I can’t figure out where/how to wrap the code because when I add the div tags to the html in the settings pane it just strips them back out. And then I couldn’t figure out how to hide them in the home page slider so I just gave up and turned them off.
Wow this one looks exactly like what I was looking for…has anyone tried it?
http://codecanyon.net/item/easy-pagination-for-wordpress/224486
It’s $17. Seems like it does exactly what I want something to do.
Anyone have any experience with it?
This is what’s in my functions file now for the POST plug in links and I have that working perfectly for posts. But I want now to do the same thing for PAGES.
My current code on functions.php looks like this:
<?php
function graphene_slider_post_types(){
return array('post', 'page');
}
add_filter( 'graphene_slider_post_type', 'graphene_slider_post_types' );
// attaches the function my_post_nav to the hook graphene_post_nav
add_action ('graphene_after_post_content', 'my_post_nav');
// our function
function my_post_nav(){
// this will allow us to use other hooks but still only show on single posts
if ( is_single() && ! is_page() ) : ?>
<div id="my-post-nav"> <!-- div to contain your links -->
<?php previous_post_link_plus( array(
'order_by' => 'menu_order',
'loop' => false,
'max_length' => 0,
'tooltip' => 'Previous page',
'in_same_cat' => true,
'ex_cats' => '12'
) );?> |
<?php next_post_link_plus( array(
'order_by' => 'menu_order',
'loop' => false,
'max_length' => 0,
'tooltip' => 'Next page',
'in_same_cat' => true,
'ex_cats' => '12'
) );?>
</div>
<?php endif;
}So…I’m not sure how to make it work for pages instead of posts….we do know that the code that makes the links for pages is as I posted above…but I’m not sure how to make it attach with a hook.
Thanks..by the way nice progress on your site…it’s looking great!
Yup that’s exactly what I want to do but not sure how to code it because it seems there is no hook for page nav? Or would I just add an action hook for “do action” then paste in the plug in code?
<div id="ambrosepagenav">
<?php previous_page_link_plus( array(
'order_by' => 'menu_order',
'loop' => false,
'max_length' => 0,
'tooltip' => 'Previous page',
'in_same_parent' => true,
) );?> |
<?php next_page_link_plus( array(
'order_by' => 'menu_order',
'loop' => false,
'max_length' => 0,
'tooltip' => 'Next page',
'in_same_parent' => true,
) );?>
</div>
