Title: stanhall's Replies | WordPress.org

---

# stanhall

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Sydney] Latest News Button not linking to blog page](https://wordpress.org/support/topic/latest-news-button-not-linking-to-blog-page/)
 *  Thread Starter [stanhall](https://wordpress.org/support/users/stanhall/)
 * (@stanhall)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/latest-news-button-not-linking-to-blog-page/#post-7345266)
 * Thank you that work! As always you are always the best when it comes to fixing
   everything!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Sydney] Latest News Button not linking to blog page](https://wordpress.org/support/topic/latest-news-button-not-linking-to-blog-page/)
 *  Thread Starter [stanhall](https://wordpress.org/support/users/stanhall/)
 * (@stanhall)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/latest-news-button-not-linking-to-blog-page/#post-7345206)
 * Do I just need to copy and paste the line of code you put in your last comment
   over the existing file? Because it appears to be the same. Below is the code 
   from my php file =
 *     ```
       <?php if ($category) : //Link to the category page instead of blog page if a category is selected ?>
       			<a href="<?php echo esc_url(get_category_link(get_cat_ID($cat -> name))); ?>" class="roll-button more-button"><?php echo $see_all_text; ?></a>
       		<?php else : ?>
       			<a href="<?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>" class="roll-button more-button"><?php echo $see_all_text; ?></a>
       		<?php endif; ?>
       ```
   

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