Forum Replies Created
-
AuthorPosts
-
jradarMember
add_filter('genesis_next_link_text','rs_next_page_text');
function rs_next_page_text(){
$nextlink = 'Older >';
return $nextlink;
}i can see that in the above function, i want to add the following, but i'm not sure how ... adding it within that function doesn't make sense ... it's adding a second button within the button .... i'm close but i'm lost.
$categories = get_the_category();
if ( count( $categories ) ) {
$category = array_shift( $categories );
$cat_id = $category->cat_ID;//get array of Posts for Category, default is 'order by date', set it to Ascending instead of default Descending
$args = array( 'category' => $cat_id, 'order' => 'ASC' );
$posts = get_posts( $args );//display
link that jumps to first item in Posts Array
$link = $posts[0]->guid;
echo '<anch href='.$link.'>FIRST</anch>';
}add_filter('genesis_prev_link_text','rs_prev_page_text');
function rs_prev_page_text(){
$prevlink = '< Newer';
return $prevlink;
}jradarMemberthanks very much, i appreciate the response ... any chance you could point me towards how to add this in genesis?
i'm not super good with the php but i can fumble my way thru some things
do i pull the genesis loops.php into the child theme to customize?
or do i attempt to do the remove/add action via the child theme' functions?
for what it's worth, this isn't a paid project, i'm helping someone and trying to learn as i go
jradarMemberthanks Ren, but i don't want next / previous ... i want first/last ... big difference ... i can already step forward between posts ... i want to jump to the very first post or the very last post ... i can't seem to find reference to this anywhere???
ideas please?! thanks very much
jradarMembernot even one comment? am i asking something ridiculous?
-
AuthorPosts