Title: samcrawshaw's Replies | WordPress.org

---

# samcrawshaw

  [  ](https://wordpress.org/support/users/samcrawshaw/)

 *   [Profile](https://wordpress.org/support/users/samcrawshaw/)
 *   [Topics Started](https://wordpress.org/support/users/samcrawshaw/topics/)
 *   [Replies Created](https://wordpress.org/support/users/samcrawshaw/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/samcrawshaw/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/samcrawshaw/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/samcrawshaw/engagements/)
 *   [Favorites](https://wordpress.org/support/users/samcrawshaw/favorites/)

 Search replies:

## Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)

 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [paginate comments links](https://wordpress.org/support/topic/paginate-comments-links/)
 *  Thread Starter [samcrawshaw](https://wordpress.org/support/users/samcrawshaw/)
 * (@samcrawshaw)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/paginate-comments-links/#post-3976215)
 * Never mind, solved it with wp_list_comments.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [basic if statement](https://wordpress.org/support/topic/basic-if-statemetn/)
 *  Thread Starter [samcrawshaw](https://wordpress.org/support/users/samcrawshaw/)
 * (@samcrawshaw)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/basic-if-statemetn/#post-3942839)
 * Resolved
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [basic if statement](https://wordpress.org/support/topic/basic-if-statemetn/)
 *  Thread Starter [samcrawshaw](https://wordpress.org/support/users/samcrawshaw/)
 * (@samcrawshaw)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/basic-if-statemetn/#post-3942832)
 * Hi bcworkz,
 * I meant the url reads //localhost/mysite/contact but it’s not pulling in the 
   page.
 * The source code looks like this when outputted:
 *     ```
       <li id="menu-item-127" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-127"><a href="http://localhost/mysite/projects/">Projects</a></li>
       <li id="menu-item-130" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-130"><a href="http://localhost/mysite/contact/">Contact</a></li>
   
       EDIT: Well shiver mi timbers, once I reactivated the plugins it started working again!?
   
       Thanks for your help bcworkz.
   
       Regards,
       Sam
       ```
   
 * The back end also throws out a 404 when I click on View Page permalink.
 * I’ve tried deactivating all my plugins but still no joy.
 * EDIT: Well, shiver-mi-timbers. Once i reactivated the plugins it started working
   again.
 * Thanx for your help bcworkz.
 * Regards,
    Sam
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Only display featured image of the first post](https://wordpress.org/support/topic/only-display-featured-image-of-the-first-post/)
 *  [samcrawshaw](https://wordpress.org/support/users/samcrawshaw/)
 * (@samcrawshaw)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/only-display-featured-image-of-the-first-post/#post-3935477)
 * Something like this?
 *     ```
       <?php
       $recent = new WP_Query("showposts=7");
       while($recent->have_posts()) : $recent->the_post();
       $counter++;?>
       <ul>
       <?php if($counter == 1){
       the_post_thumbnail();}?>
       <li><h3><?php the_title(); ?></h3></li>
       <li><?php the_excerpt();?></li>
       <?php if($counter > 1){?>
       <li><h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3></li>
       }?>
       <?php endwhile; ?>
       </ul>
       ```
   
 * Can’t check it at the moment, might have errors.
 * Sorry, your on your own with the CSS.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Display same menu for parent and all its children](https://wordpress.org/support/topic/display-same-menu-for-parent-and-all-its-children/)
 *  [samcrawshaw](https://wordpress.org/support/users/samcrawshaw/)
 * (@samcrawshaw)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/display-same-menu-for-parent-and-all-its-children/#post-3941789)
 * Not sure if I get you, but something akin to this?
 *     ```
       if (is_page('your_page_name')){
       wp_nav_menu(array('menu' => 'your_menu_name',
       'container' => false,
       'items_wrap' => '<ul id="%1$s" class="%2$s"><h4>Menu Name</h4>%3$s</ul>'));}
   
       else if{arguments for another menu}
       else if{arguments for another menu}
       else{what to do otherwise}
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Tag decription on hover](https://wordpress.org/support/topic/tag-decription-on-hover/)
 *  Thread Starter [samcrawshaw](https://wordpress.org/support/users/samcrawshaw/)
 * (@samcrawshaw)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/tag-decription-on-hover/#post-3868512)
 * Fathomed it:
 *     ```
       <p>Tags:
       <?php
       $posttags = get_the_tags();
       if ($posttags) {
       foreach($posttags as $tag) {
       echo '<a href="';echo bloginfo(url);
       echo '/?tag=' . $tag->slug . '" class="' . $tag->slug . '" title="' . $tag->description . '">' . $tag->name;
       echo '</a> ';
       }
       }
       ?>
       </p>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Formidable] Creating custom shortcodes](https://wordpress.org/support/topic/plugin-formidable-creating-custom-shortcodes/)
 *  Thread Starter [samcrawshaw](https://wordpress.org/support/users/samcrawshaw/)
 * (@samcrawshaw)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-formidable-creating-custom-shortcodes/#post-2309390)
 * Did it with JavaScript in the end:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Formidable Forms - Contact Form Plugin, Survey, Quiz, Payment, Calculator Form & Custom Form Builder] [Plugin: Formidable Forms] How do I mix some PHP code into my Form?](https://wordpress.org/support/topic/plugin-formidable-forms-how-do-i-mix-some-php-code-into-my-form/)
 *  [samcrawshaw](https://wordpress.org/support/users/samcrawshaw/)
 * (@samcrawshaw)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-formidable-forms-how-do-i-mix-some-php-code-into-my-form/#post-1858548)
 * Don’t know if this is relevant now but you would need to create a shortcode in
   your function.php file.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Pagination using wp_paginate or wp_pagenavi in custom page](https://wordpress.org/support/topic/pagination-using-wp_paginate-or-wp_pagenavi-in-custom-page/)
 *  Thread Starter [samcrawshaw](https://wordpress.org/support/users/samcrawshaw/)
 * (@samcrawshaw)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/pagination-using-wp_paginate-or-wp_pagenavi-in-custom-page/#post-2297511)
 * Rookie mistake. Wasn’t using $paged.
 *     ```
       <?php if (is_page('22')){
       	$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
       	query_posts("posts_per_page=4&cat=7&paged=$paged");
       	if ( have_posts() ) : while ( have_posts() ) : the_post();?>
       	<div class="posts">
       		content...
       		</div><!--end posts-->
       	<?php endwhile; else: endif;
       	if(function_exists('wp_paginate')){
       		wp_paginate();}
       	wp_reset_query();}?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PageNavi] [Plugin: WP-PageNavi] Does not affect Custom Community theme index page](https://wordpress.org/support/topic/plugin-wp-pagenavi-does-not-affect-custom-community-theme-index-page/)
 *  [samcrawshaw](https://wordpress.org/support/users/samcrawshaw/)
 * (@samcrawshaw)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-wp-pagenavi-does-not-affect-custom-community-theme-index-page/#post-2297331)
 * Have you added `<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?
   >` in your footer.php file? (or where ever it is desired)

Viewing 10 replies - 1 through 10 (of 10 total)