Title: nigelmcg's Replies | WordPress.org

---

# nigelmcg

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[WP Catalogue] easy to fill but not to find](https://wordpress.org/support/topic/easy-to-fill-but-not-to-find/)
 *  [nigelmcg](https://wordpress.org/support/users/nigelmcg/)
 * (@nigelmcg)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/easy-to-fill-but-not-to-find/#post-8714590)
 * Hi Margzmi
    Use the shortcode [wp-catalogue] on a new page to see the Catalogue
   displayed.
 * Give the new page any name that works for what you are displaying.
 * Cheers,
    Nigel
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Conditional tag 'is_page_template' not working on my custom page](https://wordpress.org/support/topic/conditional-tag-is_page_template-not-working-on-my-custom-page/)
 *  Thread Starter [nigelmcg](https://wordpress.org/support/users/nigelmcg/)
 * (@nigelmcg)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/conditional-tag-is_page_template-not-working-on-my-custom-page/#post-6938210)
 * The page has the page template declaration at the top of the news.php file instead
   of the prefix ‘page-‘ in the file name. The declaration provides the Template
   option in the admin page properties and in the editor it will display as News
   Page Template – news.php because the system will automatically add that page 
   to the editor.
 *     ```
       <?php
       /**
        * Template Name: News
        * created by MCG jan-2016
        */
   
       get_header(); ?>
       ```
   
 * Unfortunately, I’ve stomped on the main Loop with my query aimed at the News 
   category, therefore the query doesn’t collect the page ID, Template name or Page
   name and can’t be used for those conditional tags on the Footer template when
   loading.
 * I’m now looking for a way to do the same but using the correct main Loop with
   a WP_Query within The Loop instead to avoid the possibility of too many SQL requests
   on the server. The site I’m working on could get very busy.
 * I’ve looked through the Codex files and can’t work out the best way to make it
   work.
 * This is what I have
 *     ```
       <?php $query = new WP_Query( 'cat=6'.'&showposts=3'.'&paged='.$paged ); ?>
        <?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>
       ```
   
 * It works but paging isn’t working…
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Conditional tag 'is_page_template' not working on my custom page](https://wordpress.org/support/topic/conditional-tag-is_page_template-not-working-on-my-custom-page/)
 *  Thread Starter [nigelmcg](https://wordpress.org/support/users/nigelmcg/)
 * (@nigelmcg)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/conditional-tag-is_page_template-not-working-on-my-custom-page/#post-6938094)
 * It is a template file with a custom query to collect posts from a category called
   News.
 * As it happens I’ve been researching the Codex and I found my answer.
 * [Template_Tags/query_posts](https://codex.wordpress.org/Template_Tags/query_posts)
 * Because I’d altered the main Loop with my query the page id wasn’t being collected,
   but it did collect the category so I’ve changed my conditional tag to match the
   category instead of the page or template file.
 *     ```
       <?php if( is_category( 'news' ) ) { ?>
       <!-- insert social feeds -->
       	<?php include (TEMPLATEPATH . '/social-feeds.php'); ?>
       <!-- end social feeds -->
       <?php } ?>
       ```
   
 * This also stops the archive pages from including the file except of course the
   News archive..
 * And just for clarity, the reason the conditional tags are in the footer template
   is because I want the output to display at the bottom of the content just before
   the footer and clear of the sidebar.
 * Thanks Mr Case for showing an interest and hopefully this will help out others.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Fruitful] Responsive Layout Not Working](https://wordpress.org/support/topic/responsive-layout-not-working-1/)
 *  [nigelmcg](https://wordpress.org/support/users/nigelmcg/)
 * (@nigelmcg)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/responsive-layout-not-working-1/#post-6929860)
 * Yes, YPod, you can replace the first with the second piece of code.. I use Google
   Chrome but I tested it with IE and it seemed to work with that browser too. Mobile
   browser’s might respond differently. Couldn’t test my phone because you had Jetpack
   on.
 * When you inspect an element on the page you linked using Chrome it shows a 404
   error for your Facebook JavaScript. I’m guessing it’s a plugin…
 * To inspect an element using Chrome you right click on the element on the page
   you want to view, then click “Inspect Element” a console will appear where the
   right column shows the CSS for the element that’s highlighted on the main page.
 * Hopefully Fruitful will get it sorted for you
    Cheers
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Fruitful] Responsive Layout Not Working](https://wordpress.org/support/topic/responsive-layout-not-working-1/)
 *  [nigelmcg](https://wordpress.org/support/users/nigelmcg/)
 * (@nigelmcg)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/responsive-layout-not-working-1/#post-6929791)
 * Hi YPod,
 * Was having a similar problem with a different theme but checked your page out
   and located this code in the Fruitful Shortcode CSS. It’s on line 1626. Search
   for .post-content.
 *     ```
       .blog_post .post-content, .eleven.columns .blog_post .post-content, .search .blog_post .post-content {
       	width: auto;
       }
       ```
   
 * Comment out like this
 *     ```
       .blog_post .post-content, .eleven.columns .blog_post .post-content, .search .blog_post .post-content {
       	/*width: auto; removed for breaking the responsive layout*/
       }
       ```
   
 * On a side note your Facebook .js isn’t loading…
 * Hope this helps you
    Cheers, Nigel
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spiffy Calendar] Subscriber can see Spiffy Calendar in admin bar](https://wordpress.org/support/topic/subscriber-can-see-spiffy-calendar-in-admin-bar/)
 *  Thread Starter [nigelmcg](https://wordpress.org/support/users/nigelmcg/)
 * (@nigelmcg)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/subscriber-can-see-spiffy-calendar-in-admin-bar/#post-6877060)
 * Thanks Bev,
    Excellent support and highly recommended
 * Cheers,
    Nigel
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spiffy Calendar] Subscriber can see Spiffy Calendar in admin bar](https://wordpress.org/support/topic/subscriber-can-see-spiffy-calendar-in-admin-bar/)
 *  Thread Starter [nigelmcg](https://wordpress.org/support/users/nigelmcg/)
 * (@nigelmcg)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/subscriber-can-see-spiffy-calendar-in-admin-bar/#post-6876971)
 * Thanks
 * Cheers,
    Nigel

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