Forum Replies Created
-
Yup I think you are totally right.
I think I’m actually ok now. I’m using multi-page toolkit. Only thing I’m stuck on now is trying to get more space below the numbers in the top set…
http://juicytravels.com/best-air-travel-sites/5-cool-flight-tracker-sites-multipagetoolkit/
I added padding to the contentjump stuff but it didn’t do anything. Once I get that done I think I’m going to just use this, or, Easy Paginator which is pretty good but waiting for them to tweak something in the code to make it where the screens are separate entities that can be linked to/clicked on. You can see that example here if you want
http://juicytravels.com/best-air-travel-sites/5-cool-flight-trackers-easy-pag/
So…I’m going to live with one of these and forget the rest. These will end up working fine.
If you have any ideas about how to get more space after the line of numbers at the top…
Thanks 🙂
I’ve given up on it.
I’m not going to use posts.
I will just use pages and break them up with the nextpage tag, and use either Easy Paginator or Multi Page Toolkit.
Even after removing all ambrosesite code from functions and css, I still can’t get WP Page Navi to work. No idea why.
I can’t stay stuck on how to paginate something anymore, it’s making me too frustrated. Onward.
Thanks for all the help Josh. I really appreciate it.
Josh-
this is the thread where we tweaked it into place as it is…
I’m going to undo it all I guess and try to start over?
Surely I can use both the ambrosesite post and page plugins at the same time.
Doesn’t seem like it should be hard I just don’t know what I’m doing.
I just tried to install a different kind of pagination…
http://design.sparklette.net/teaches/how-to-add-wordpress-pagination-without-a-plugin/
So in my child theme functions fie I added:
function pagination($pages = '', $range = 4)
{
$showitems = ($range * 2)+1;
global $paged;
if(empty($paged)) $paged = 1;
if($pages == '')
{
global $wp_query;
$pages = $wp_query->max_num_pages;
if(!$pages)
{
$pages = 1;
}
}
if(1 != $pages)
{
echo "<div class="pagination"><span>Page ".$paged." of ".$pages."</span>";
if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<a href='".get_pagenum_link(1)."'>« First</a>";
if($paged > 1 && $showitems < $pages) echo "<a href='".get_pagenum_link($paged - 1)."'>‹ Previous</a>";
for ($i=1; $i <= $pages; $i++)
{
if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
{
echo ($paged == $i)? "<span class="current">".$i."</span>":"<a href='".get_pagenum_link($i)."' class="inactive">".$i."</a>";
}
}
if ($paged < $pages && $showitems < $pages) echo "<a href="".get_pagenum_link($paged + 1)."">Next ›</a>";
if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($pages)."'>Last »</a>";
echo "</div>n";
}
}
if (function_exists("pagination")) {
pagination($additional_loop->max_num_pages);
}
add_action( 'graphene_after_post_content', 'pagination' );
?>the entire page is like this in case there is something above it, like that space or misplaced tags which might be the problem?
<?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;
}
/******
* these next two remove the graphene breadcrumb and then add one
* which does not appear on the home page
*****/
// has to be called after the action is added
add_action ('after_setup_theme', 'wmrt_remove_graphene_bc');
function wmrt_remove_graphene_bc() {
remove_action ('graphene_top_content', 'graphene_breadcrumb_navxt');
}
add_action('graphene_top_content', 'wmrt_breadcrumb_navxt');
function wmrt_breadcrumb_navxt () {
//by calling this at this point is_home() works!
if ((function_exists('bcn_display')) && (!(is_front_page()))) {
echo '<div class="breadcrumb">';
bcn_display();
echo '</div>';
}
}
function graphene_filter_gettext( $translated, $original, $domain ) {
$strings = array(
'View full post' => 'Read More',
);
if ( ! empty( $strings[$original] ) ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );
function laura_sharethis (){
?>
<div id="sharethis"><span class='st_facebook_hcount' displayText='Facebook'></span><span class='st_twitter_hcount' displayText='Tweet'></span><span class='st_plusone_hcount'></span><span class='st_fblike_hcount'></span></div>
<?php
}
add_action( 'graphene_after_post_content', 'laura_sharethis' );
function pagination($pages = '', $range = 4)
{
$showitems = ($range * 2)+1;
global $paged;
if(empty($paged)) $paged = 1;
if($pages == '')
{
global $wp_query;
$pages = $wp_query->max_num_pages;
if(!$pages)
{
$pages = 1;
}
}
if(1 != $pages)
{
echo "<div class="pagination"><span>Page ".$paged." of ".$pages."</span>";
if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "<a href='".get_pagenum_link(1)."'>« First</a>";
if($paged > 1 && $showitems < $pages) echo "<a href='".get_pagenum_link($paged - 1)."'>‹ Previous</a>";
for ($i=1; $i <= $pages; $i++)
{
if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
{
echo ($paged == $i)? "<span class="current">".$i."</span>":"<a href='".get_pagenum_link($i)."' class="inactive">".$i."</a>";
}
}
if ($paged < $pages && $showitems < $pages) echo "<a href="".get_pagenum_link($paged + 1)."">Next ›</a>";
if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "<a href='".get_pagenum_link($pages)."'>Last »</a>";
echo "</div>n";
}
}
if (function_exists("pagination")) {
pagination($additional_loop->max_num_pages);
}
add_action( 'graphene_after_post_content', 'pagination' );
?>and in styles I added
}
.pagination {
clear:both;
padding:20px 0;
position:relative;
font-size:11px;
line-height:13px;
}
.pagination span, .pagination a {
display:block;
float:left;
margin: 2px 2px 2px 0;
padding:6px 9px 5px 9px;
text-decoration:none;
width:auto;
color:#fff;
background: #555;
}
.pagination a:hover{
color:#fff;
background: #3279BB;
}
.pagination .current{
padding:6px 9px 5px 9px;
background: #3279BB;
color:#fff;
}But that doesn’t work either.
Why is this pagination thing such a hard thing for me to figure out?
Syahir, can you help please? I’ve been stuck on this for weeks.
I made one set go away by adding
}
.link-pages {
display:none;
}
to my css
And the other set of tops and bottoms looks like it was coming from a plug in.
So…never mind 🙂 Thanks.
Correct, I’ve got them both activated and somewhat working but the pages ones are showing up on the posts, and, I haven’t been able to make them stick to their own parent.
Nope, same. Let’s leave it. I know you have your own long list of stuff.
I’m going to give some more thought to how I actually want the home page to be.
Thanks 🙂
I’m also still banging my head against the ambrosite plug in. It’s making me nuts. I can’t get them to work together and I know it has something to do with the function in my functions file for the post plug in.
