Title: hrcwebmaster's Replies | WordPress.org

---

# hrcwebmaster

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [added html at the end of my URL?](https://wordpress.org/support/topic/added-html-at-the-end-of-my-url/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/added-html-at-the-end-of-my-url/#post-3924778)
 * Never mind – I figured it out. It came from the “CopyNShare” option in my ShareThis
   widget. The extra hashtag allows the plugin to track when people copy and share
   my links.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with previous/next links for my page of posts [catchbox]](https://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox/#post-3198545)
 * Yes, that definitely worked. Thank you again, so much. I have been struggling
   with this for weeks!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with previous/next links for my page of posts [catchbox]](https://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox/#post-3198540)
 * I spoke too soon. I was so excited that it showed “previous” and “next” links,
   but didn’t realize that when I click on “next,” it basically refreshes the page
   and adds “previous” to it. It doesn’t actually pull the next page of posts: [http://hrc.wastateleg.org/news/](http://hrc.wastateleg.org/news/).
   I pasted in your code above, I only changed the “cat” number, because it was 
   supposed be 7 and not 1.
    Sorry, can you help me again??
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with previous/next links for my page of posts [catchbox]](https://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox/#post-3198539)
 * It worked!!!! I cannot thank you enough! Thank you so much Sakin!!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with previous/next links for my page of posts [catchbox]](https://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox/#post-3198527)
 * Any ideas out there? I am still looking…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with previous/next links for my page of posts [catchbox]](https://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox/#post-3198499)
 * Ok I tried the ‘paged’ line you suggested, as well as the max num pages suggested
   on the link you provided. The large code replacement suggested on that page doesn’t
   exactly work with what I have in my code, so I didn’t know how to translate it
   to my code.
    Here’s my entire php template file:
 *     ```
       <?php
   
       /**
       * Template Name: Newsroom
       * The newsroom template file.
       * This is the template file used for displaying the main newsroom page.
       * @package Catch Themes
       * @subpackage Catch_Box
       */
   
       get_header(); ?>
       </div><!-- site-logo -->
   
       <div id="content100" div style="text-align:left;">
       <h1 class="entry-title">Newsroom <hr></h1>
   
       <?php if ( have_posts() ) : ?>
   
       				<?php /* Start the Loop */ ?>
       				<?php while ( have_posts() ) : the_post(); ?>
   
       <div><?php dynamic_sidebar('Opinions'); ?></div>
       <div style="padding: 0.1em 0% 3em;">				
   
       <?php
           $args=array(
       		'cat' => 7,
       		'orderby' =>'post_date',
       		'order' => 'DESC',
       		'posts_per_page' => 10,
       		'paged' => get_query_var('page')
           );
       $my_query = new WP_Query($args);
   
           if( $my_query->have_posts() ) {
   
         while ($my_query->have_posts()) : $my_query->the_post(); ?>
               <br /><strong><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a the_title_attribute(); ?></a></strong>
       <div style="text-align:right;"><em><?php echo get_the_date(); ?></em></div>
       <?php the_excerpt(); ?></p>
   
          <?php
             endwhile;
           } //if ($my_query)
         wp_reset_query();  // Restore global post data stomped by the_post().
       ?>
       </div><!-- extra padding -->
   
       <?php next_posts_link(); ?> 
   
       				<?php endwhile; ?>
   
       			<?php else : ?>
   
       				<article id="post-0" class="post no-results not-found">
       					<header class="entry-header">
       						<?php _e( 'Nothing Found', 'catchbox' ); ?>
       					</header><!-- .entry-header -->
   
       					<div class="entry-content">
       						<h1 class="entry-title"><p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'catchbox' ); ?></p></h1>
       						<?php get_search_form(); ?>
       					</div><!-- .entry-content -->
       				</article><!-- #post-0 -->
   
       			<?php endif; ?>
   
       </div><!-- #content100 -->
   
       <?php previous_posts_link(); ?><?php next_posts_link(); ?> 
   
       		</div><!-- #primary -->
       <?php get_footer(); ?>
       ```
   
 * I appreciate your help!!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with previous/next links for my page of posts [catchbox]](https://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox/#post-3198494)
 * I see what you mean – though the link you provided had two queries and two `endwhile`
   lines.
    I tried: -adding the reset code down to the second endwhile and got an
   error for my template (unexpected T_ENDWHILE) -deleted the second endwhile and
   got an error (unexpected T_ELSE) -moved the `<?php previous_posts_link(); ?><?
   php next_posts_link(); ?>` above the first endwhile and got no links (but didn’t
   get an error)
 * I’m very new to WordPress and the Loop as well; I’m really playing a puzzle blind
   at this point…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with previous/next links for my page of posts [catchbox]](https://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox/#post-3198488)
 * Seacoast – I’m trying to avoid more plugins, but if it comes down to it I will
   check that one out, thank you!
 * Alchymyth – I tried `<?php previous_posts_link(); ?><?php next_posts_link(); ?
   >` before and after the `<?php endwhile; ?>` and neither worked (displayed nothing).
   From that page you linked, I found `<?php echo get_previous_posts_link(); ?><?
   php echo get_next_posts_link(); ?>` but those also displayed nothing (again, 
   tried placing before then after the `<?php endwhile; ?>`).
 * Still stumped…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Copy custom fields from one page to others](https://wordpress.org/support/topic/copy-custom-fields-from-one-page-to-others/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/copy-custom-fields-from-one-page-to-others/#post-3104094)
 * I found Advanced Custom Fields plugin. Any non-plugin solutions so I don’t bog
   down my site with too many plugins?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem using custom fields within WordPress functions](https://wordpress.org/support/topic/problem-using-custom-fields-within-wordpress-functions/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/problem-using-custom-fields-within-wordpress-functions/#post-3077177)
 * cue >angelic voices<
    Hooray! Thank you so much!! I really appreciate it!!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem using custom fields within WordPress functions](https://wordpress.org/support/topic/problem-using-custom-fields-within-wordpress-functions/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/problem-using-custom-fields-within-wordpress-functions/#post-3077175)
 * I’m not getting an error, the page is displaying, but it’s not pulling the feed
   it should be. The custom field being pulled, “delicious-feed” is this: [http://feeds.delicious.com/v2/rss/wahousegop/alexander](http://feeds.delicious.com/v2/rss/wahousegop/alexander).
   So there are two stories that should be pulling the area “In the News” on the
   Web page and it’s not.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem using custom fields within WordPress functions](https://wordpress.org/support/topic/problem-using-custom-fields-within-wordpress-functions/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/problem-using-custom-fields-within-wordpress-functions/#post-3077173)
 * Ooops sorry I made it public. Never used paste pin before.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem using custom fields within WordPress functions](https://wordpress.org/support/topic/problem-using-custom-fields-within-wordpress-functions/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/problem-using-custom-fields-within-wordpress-functions/#post-3077171)
 * Ok didn’t work. I pasted it here: [http://pastebin.com/2zjRP0ze](http://pastebin.com/2zjRP0ze).
   
   Thank you for your help!!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem using custom fields within WordPress functions](https://wordpress.org/support/topic/problem-using-custom-fields-within-wordpress-functions/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/problem-using-custom-fields-within-wordpress-functions/#post-3077169)
 * Hmmm didn’t help. Error this time:
    ” Parse error: syntax error, unexpected ‘{‘
   in /home/hrcadmin/public_html/wp-content/themes/catch-box-child/member.php on
   line 126″
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem using custom fields within WordPress functions](https://wordpress.org/support/topic/problem-using-custom-fields-within-wordpress-functions/)
 *  Thread Starter [hrcwebmaster](https://wordpress.org/support/users/hrcwebmaster/)
 * (@hrcwebmaster)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/problem-using-custom-fields-within-wordpress-functions/#post-3077166)
 * Ok I tried it this way
 *     ```
       $rss = fetch_feed('<?php $key="delicious-feed"; echo get_post_meta($post->ID,$key,true); ?>'); {
       global  $post
       if (!is_wp_error( $rss ) ) : }
       // Checks that the object is created correctly
           // Figure out how many total items there are, but limit it to 5.
           $maxitems = $rss->get_item_quantity(5);
       ```
   
 * and it gets error ” Parse error: syntax error, unexpected T_IF, expecting ‘,’
   or ‘;’ in /home/…”
    and this way
 *     ```
       $rss = fetch_feed('<?php $key="delicious-feed"; echo get_post_meta($post->ID,$key,true); ?>') {
       global  $post
       if (!is_wp_error( $rss ) ) : }
       // Checks that the object is created correctly
           // Figure out how many total items there are, but limit it to 5.
           $maxitems = $rss->get_item_quantity(5);
       ```
   
 * and get this error: “Parse error: syntax error, unexpected ‘{‘ in /home/hrcadmin/
   public_html/wp-content/themes/catch-box-child/member.php on line 126”
 * Do I need to declare the global $post before I call the custom field?
    Sorry 
   and thank you!

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

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