Title: tommyboy21's Replies | WordPress.org

---

# tommyboy21

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/tommyboy21/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/tommyboy21/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Half my frontend images not loading](https://wordpress.org/support/topic/half-my-frontend-images-not-loading/)
 *  [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/half-my-frontend-images-not-loading/#post-10636301)
 * Hi,
 * I had been having this problem for some time. Try deactivating Jetpack and see
   if that changes anything.
 * On one of my sites I managed to fix this by turning off Jetpacks CDN serving 
   of images. My other site wouldn’t allow me to turn it off (kept getting an error)
   so I just deactivated Jetpack altogether and now it works fine.
 * Kinda frustrating though.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[A-Z Listing] Posts of a certain category type](https://wordpress.org/support/topic/posts-of-a-certain-category-type/)
 *  Thread Starter [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/posts-of-a-certain-category-type/#post-9476524)
 * Thanks for the response Daniel. I’ve changed it back to the slug (still not showing).
   Please let me know if you find a solution.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Minify breaks css on posts](https://wordpress.org/support/topic/minify-breaks-css-on-posts/)
 *  Thread Starter [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/minify-breaks-css-on-posts/#post-9022073)
 * No-one else experiencing this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Better WordPress Minify] Links to plugin redirecting to home.](https://wordpress.org/support/topic/links-to-plugin-redirecting-to-home/)
 *  Thread Starter [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/links-to-plugin-redirecting-to-home/#post-6879433)
 * Hi Khang,
 * I did try that, but it didn’t work. It’s no problem. Main thing is that I have
   managed to make the changes to BWP so all is good.
 * Thanks for the cool plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Better WordPress Minify] Links to plugin redirecting to home.](https://wordpress.org/support/topic/links-to-plugin-redirecting-to-home/)
 *  Thread Starter [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/links-to-plugin-redirecting-to-home/#post-6879427)
 * Hi Khang,
 * Thanks for the advice.
 * I followed your advice and it turns out that the firewall plugin is doing the
   redirecting. So if I want to make changes to BWP, I need to deactivate the firewall
   first…
 * THANKS!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Logging in on public wifi](https://wordpress.org/support/topic/logging-in-on-public-wifi/)
 *  Thread Starter [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/logging-in-on-public-wifi/#post-4021266)
 * Sadly I can’t sign up to that from here (web proxies blocked) but perhaps if 
   I can get one set up outside, it may work back in here.
 * Thanks for your help.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Logging in on public wifi](https://wordpress.org/support/topic/logging-in-on-public-wifi/)
 *  Thread Starter [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/logging-in-on-public-wifi/#post-4021259)
 * I do actually. They have tried to log in and did so successfully.
 * As long as it’s not something within WordPress that’s preventing the login (for
   security reasons) would you guys have any suggestions for a workaround?
 * Thanks so much for your help.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Logging in on public wifi](https://wordpress.org/support/topic/logging-in-on-public-wifi/)
 *  Thread Starter [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/logging-in-on-public-wifi/#post-4021234)
 * Thanks for the response.
 * If I go to a site that’s seen as dodgy in some way, I get an error screen. However,
   here I’m just getting the page refreshing. No bad login message or anything.
 * For a while I was worried that I was hacked or something, but event after changing
   the password I was getting the same result.
 * I’ve tried two sites hosted on separate hosting accounts and am getting the same
   result on both.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Lists of posts by category on a page with archive page styling.](https://wordpress.org/support/topic/lists-of-posts-by-category-on-a-page-with-archive-page-styling/)
 *  Thread Starter [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/lists-of-posts-by-category-on-a-page-with-archive-page-styling/#post-3032972)
 * Hi,
 * I have been using the custom field example, but it isn’t returning results for
   some reason (have have tried different categories).
 * I want the custom field to be ‘category’ so that I can create numerous pages 
   that will contain posts from a specific category in addition to the page text(
   which would be input using the post text area).
 * It looks as if the Genesis framework has the functionality that I’m looking for:
   
   [http://www.studiopress.com/tutorials/category-blog-page](http://www.studiopress.com/tutorials/category-blog-page)
 * But my theme isn’t using the genesis framework…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Lists of posts by category on a page with archive page styling.](https://wordpress.org/support/topic/lists-of-posts-by-category-on-a-page-with-archive-page-styling/)
 *  Thread Starter [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/lists-of-posts-by-category-on-a-page-with-archive-page-styling/#post-3032954)
 * Hi,
 * I’m sorry, I don’t understand.
    If I’m specifying the category ID in the template,
   doesn’t that defeat the object of using custom fields?
 * I was hoping that I would be able to make a page template that I could use for
   different categories without having to change the template files.
 * Thanks.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Lists of posts by category on a page with archive page styling.](https://wordpress.org/support/topic/lists-of-posts-by-category-on-a-page-with-archive-page-styling/)
 *  Thread Starter [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/lists-of-posts-by-category-on-a-page-with-archive-page-styling/#post-3032947)
 * Thanks for your help.
 * I’ve tried to implement page of posts using the page.php file as a starting point,
   but it doesn’t return anything – neither the page text or
    the posts by category…
   Any idea where I’m going wrong?
 *     ```
       <?php
       /*
       Template Name: Page Of Posts with Custom Fields
       */
   
       get_header(); ?>
       			<?php if(get_option('reedwan_page_style') == 'sidebar'): ?>
       			<!-- Begin Left Sidebar -->
       			<?php if(get_option('reedwan_sidebar_position') == 'left'): ?>
       			<div class="left-sidebar grid_4">
       				<?php get_sidebar(); ?>
       			</div>
       			<?php endif; ?>
       			<!-- End Left Sidebar -->
       			<!-- Begin Content -->
       			<div class="single-container page grid_8" >
       				<?php
       if (is_page() ) {
       $category = get_post_meta($posts[0]->ID, 'category', true);
       }
       if ($category) {
        $cat = get_cat_ID($category);
        $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
        $post_per_page = 4; // -1 shows all posts
        $do_not_show_stickies = 1; // 0 to show stickies
        $args=array(
         'category__in' => array($cat),
         'orderby' => 'date',
         'order' => 'DESC',
         'paged' => $paged,
         'posts_per_page' => $post_per_page,
         'ignore_sticky_posts' => $do_not_show_stickies
        );
        $temp = $wp_query; // assign orginal query to temp variable for later use
        $wp_query = null;
        $wp_query = new WP_Query($args);
        if( have_posts() ) :
       		while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
       	  <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
           <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
           <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
           <div class="entry">
            <?php the_content('Read the rest of this entry »'); ?>
           </div>
           <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
          </div>
         <?php endwhile; ?>
         <div class="navigation">
          <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
          <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
         </div>
        <?php else : ?>
       		<h2 class="center">Not Found</h2>
       		<p class="center">Sorry, but you are looking for something that isn't here.</p>
       		<?php get_search_form(); ?>
   
       	<?php endif; 
   
       	$wp_query = $temp; //reset back to original query
   
       } // if ($category)
       ?>
       	</div>
       			</div>
       			<!-- End Content -->
       			<!-- Begin Right Sidebar -->
       			<?php if(get_option('reedwan_sidebar_position') == 'right'): ?>
       			<div class="right-sidebar grid_4">
       				<?php get_sidebar(); ?>
       			</div>
       			<?php endif; ?>
       			<!-- End Right Sidebar -->
       			<?php endif; ?>
   
       			<?php if(get_option('reedwan_page_style') == 'fullwidth'): ?>
       			<!-- Begin Content -->
       			<div class="single-container page grid_12" >
       				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
       				<div class="single-block">
       					<div class="page-line-title"><h1 class="inner-title"><?php the_title(); ?></h1></div>
       					<div class="clear"></div>
       					<div class="single-content">
       						<?php the_content(); ?>
       					</div>
       				</div>
       				<?php endwhile; endif; ?>
       			</div>
       			<!-- End Content -->
       			<?php endif; ?>
       <?php get_footer(); ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Lists of posts by category on a page with archive page styling.](https://wordpress.org/support/topic/lists-of-posts-by-category-on-a-page-with-archive-page-styling/)
 *  Thread Starter [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/lists-of-posts-by-category-on-a-page-with-archive-page-styling/#post-3032930)
 * Below is the archive page template which I have added the `<div class=”single-
   content”>
    <?php the_content(); ?> </div>` to in a hope that it would bring up
   a text area:
 *     ```
       <?php get_header(); ?>
       			<!-- Begin Left Sidebar -->
       			<?php if(get_option('reedwan_sidebar_position') == 'left'): ?>
       			<div class="left-sidebar grid_4">
       				<?php get_sidebar(); ?>
       			</div>
       			<?php endif; ?>
       			<!-- End Left Sidebar -->
       				<?php /* Get author data */
       					if(get_query_var('author_name')) :
       					$curauth = get_userdatabylogin(get_query_var('author_name'));
       					else :
       					$curauth = get_userdata(get_query_var('author'));
       					endif;
       				?>
       			<!-- Begin Content -->
       			<div class="content grid_8" >
       				<div class="content-title">
       				    	<?php if(is_day()): ?>
       							<h1><?php printf(__('Daily Archives: <span>%s</span>', 'Backstreet'), get_the_date()); ?></h1>
       						<?php elseif (is_month()) : ?>
       							<h1><?php printf(__('Monthly Archives: <span>%s</span>', 'Backstreet'), get_the_date('F Y')); ?></h1>
       						<?php elseif (is_year()) : ?>
       							<h1><?php printf(__('Yearly Archives: <span>%s</span>', 'Backstreet'), get_the_date('Y')); ?></h1>
       						<?php elseif (is_category()) : ?>
       							<h1><?php echo single_tag_title(); ?></h1>
       						<?php elseif (is_tag()) : ?>
       							<h1><?php echo single_tag_title(); ?></h1>
       						<?php elseif (is_author()) : ?>
       							<h1><?php _e('All posts by', 'Backstreet'); ?> <?php echo $curauth->display_name; ?></h1>
       						<?php else : ?>
       							<h1><?php _e('Blog Archives', 'Backstreet'); ?></h1>
       						<?php endif; ?>
       				</div>
       				<div class="clear"></div>
       				<div class="single-content">
       						<?php the_content(); ?>
       					</div>
       <?php if (have_posts()) : while (have_posts()) : the_post();  ?>
       				<?php
       					if(has_post_format('video') || has_post_format('audio') || has_post_format('gallery'))
       					{
       						$format_icon = 'class="' . get_post_format() . '-post-icon"';
       					}
       					else {
       						$format_icon = 'class="-post-icon"';
       					}
       				?>
       				<div class="block-post" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
       					<a <?php echo $format_icon; ?> href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'></a>
       					<h3 class="post-title"><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><?php the_title(); ?></a></h3>
       					<div class="clear"></div>
       					<?php if(has_post_thumbnail()): ?>
       					<?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'blog1-thumb'); ?>
       					<div class="post-image alignleft">
       						<?php $fullFeatured= wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full-featured-thumb'); ?>
       						<a class='preview-icon' rel='prettyPhoto' href='<?php echo $fullFeatured[0]; ?>'><img class="fadeover" src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" width='285' height='160' /></a>
       					</div>
       					<?php else: ?>
       					<div class="post-image alignleft">
       						<a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><img class="fadeover" src="<?php echo get_template_directory_uri(); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" width='285' height='160' /></a>
       					</div>
       					<?php endif; ?>
       					<div class="post-content">
       						<p><?php echo string_limit_words(get_the_excerpt(), 55); ?><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>' class="readmore"> [...]</a></p>
       					</div>
       					<div class="clear"></div>
       					<div class="post-head">
       						<span class="info-date"><?php the_time('F j, Y'); ?></span>
       						<span class="info-author"><?php the_author(); ?></span>
       						<span class="info-category"><?php the_category(', ') ?></span>
       						<span class="info-comment"><?php comments_popup_link('0','1','%'); ?></span>
       					</div>
       				</div>
       				<div class="clear"></div>
       				<?php endwhile;
       				endif; ?>
       				<div class="clear"></div>
       				<?php kriesi_pagination($pages = '', $range = 2); ?>
       			</div>
       			<!-- End Content -->
   
       			<!-- Begin Right Sidebar -->
       			<?php if(get_option('reedwan_sidebar_position') == 'right'): ?>
       			<div class="right-sidebar grid_4">
       				<?php get_sidebar(); ?>
       			</div>
       			<?php endif; ?>
       			<!-- End Right Sidebar -->
       <?php get_footer(); ?>
       ```
   
 * I know need to figure out what element of the page of posts code I need to include(
   and where) for it to allow me to choose the category using a custom field.
 * Would be greatly appreciated if someone could offer me advice on this.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Lists of posts by category on a page with archive page styling.](https://wordpress.org/support/topic/lists-of-posts-by-category-on-a-page-with-archive-page-styling/)
 *  Thread Starter [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/lists-of-posts-by-category-on-a-page-with-archive-page-styling/#post-3032925)
 * Well, it would be a page of post, using custom fields, but using the styling 
   of an archive page.
    The problem is that I just can’t manage to get a page of
   posts working for my theme, let alone using the archive styling.
 * I was hoping that there might already be a plugin or method for achieving this
   result…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Xavin's Review Ratings] [Plugin: Xavin's Review Ratings] Xavins review ratings widget by rating.](https://wordpress.org/support/topic/plugin-xavins-review-ratings-xavins-review-ratings-widget-by-rating/)
 *  Thread Starter [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [14 years ago](https://wordpress.org/support/topic/plugin-xavins-review-ratings-xavins-review-ratings-widget-by-rating/#post-2695400)
 * Alternately, is there a plugin that does offer this functionality? I’m not interested
   in public ratings, just author ratings.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Page of posts](https://wordpress.org/support/topic/page-of-posts-5/)
 *  Thread Starter [tommyboy21](https://wordpress.org/support/users/tommyboy21/)
 * (@tommyboy21)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/page-of-posts-5/#post-1611622)
 * Thanks for your help. I have a bit of reading and learning to do then! 🙂

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/tommyboy21/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/tommyboy21/replies/page/2/?output_format=md)