screenwords15
Forum Replies Created
-
I’m having the same problem…
Forum: Fixing WordPress
In reply to: nested loop leading to an infinite loopthank you so much, vtxyzzy. I’ve fixed the loop, and I have my ‘flipbook’ working. However, I’m now running into the problem that I can’t grab the image from the post I’m making…
*** EDIT – Never mind I fixed it ***
again, thank you so much vyxyzzy, I was up late trying to fix that and that just made my day 🙂
Forum: Fixing WordPress
In reply to: total rookie…needs helpTry bluehost. You can register your domain name through them at the same time. Plus installing WordPress is a piece of cake with ‘Simple Scripts’
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Expanded single images hides navigation barmake the images smaller? On the left nav of the nextgen gallery click options > images and change the resize to something suitable
Forum: Fixing WordPress
In reply to: changing a link within my navbarso after much playing around I finally got it… for what it’s worth here’s the code
<ul id="s-nav"> <?php if ( $q_cat == $parent ) $current_cat = " class= 'current-cat' "; else $current_cat = ''; ?> <li<?php echo $current_cat; ?>><a href="<?php echo $category_link ?>"><?php echo get_cat_name($parent); ?></a></li> <?php $categories = get_categories("title_li=&child_of=".$parent); foreach ($categories as $cat) { $link_change = get_category_link($cat->term_id); if($link_change == "http://certainsite.com") {$link_change = "http://othercertainsite.com";} if ( $q_cat == $cat->term_id) $current_cat = " class= 'current-cat' "; else $current_cat = ''; $li = '<li '. $current_cat .'>'; $li .= "<a href= '" . $link_change . "'>". $cat->cat_name . "</a>"; $li .= '</li>'; echo $li; } ?> </ul>thanks again esmi for all your help
Forum: Fixing WordPress
In reply to: changing a link within my navbarclose, I was looking to change the link. With that in mind I wrote this function with what you provided:
<ul id="s-nav"> <?php if ( $q_cat == $parent ) $current_cat = " class= 'current-cat' "; else $current_cat = ''; ?> <li<?php echo $current_cat; ?>><a href="<?php echo $category_link ?>"><?php echo get_cat_name($parent); ?></a></li> <?php $categories = get_categories("title_li=&child_of=".$parent); foreach ($categories as $cat) { if ( $q_cat == $cat->term_id) $current_cat = " class= 'current-cat' "; else $current_cat = ''; $li = '<li '. $current_cat .'>'; $li .= "<a href= '" . change_cat_link(get_category_link( $cat->term_id )) . "'>". $cat->cat_name . "</a>"; $li .= '</li>'; echo $li; } function change_cat_link($link) { if($link == 'ID of category' ) $new_link = 'new link'; else $new_link = $link; return $link;} ?> </ul>however, I’m getting an error saying that I’m calling to an undefined function. But it is defined, is it not? thanks so much for your help 🙂