deadlycomputer
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Fixing WordPress
In reply to: alphabetical next/previouswell, I was able to make a custom function to do what i wanted:
function nextLinks($tp) { $wp2 = array(); $i=0; $pOrder = array( 'category_name' => 'work', 'orderby' => 'title', 'order' => 'ASC', 'nopaging' => true, 'posts_count' => 5 ); $workPosts = get_posts($pOrder); foreach($workPosts as $wpost) { $pid = $wpost->ID; $wp2[$i] = $pid; $i++; } $pnum = array_search($tp,$wp2); if($pnum-1 >= 0) { $pre = '<a href="'.get_permalink($wp2[$pnum-1]).'" title="'.get_the_title($wp2[$pnum-1]).'" class="floatLeft"><'.get_the_title($wp2[$pnum-1]).'</a>'; } if($pnum+1 < count($wp2)) { $nxt = '<a href="'.get_permalink($wp2[$pnum+1]).'" title="'.get_the_title($wp2[$pnum+1]).'" class="rightArrow">'.get_the_title($wp2[$pnum+1]).'></a>'; } echo $pre . $nxt; }if there’s a simpler, or built in way to do what i want i’d love to know
Forum: Plugins
In reply to: How to choose the first letter of the Last word when sorting alphabeticallysimple php substring maniuplation
php.netForum: Installing WordPress
In reply to: Upgrade 2.3.3 loss of options for writing postsi resolved the problem, turns out it was a permission error on my server.
Forum: Requests and Feedback
In reply to: A “learner theme” for beginners?I agree, a “learner theme” would be a good addition to wordpress.
While i consider my knowledge of css, php, & html, full to advanced, it’s always easier to make modifications if you have something to follow.
Viewing 4 replies - 1 through 4 (of 4 total)