Title: mentalward's Replies | WordPress.org

---

# mentalward

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP responsive FAQ with category plugin] Updated version 3.1.1 to 3.2.1 – nothing shows](https://wordpress.org/support/topic/updated-version-311-to-321-nothing-shows/)
 *  [mentalward](https://wordpress.org/support/users/mentalward/)
 * (@mentalward)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/updated-version-311-to-321-nothing-shows/#post-6921247)
 * I ran into this issue today.
 * My solution was this:
    – Create a backup point for today – Restore to a backup
   before the updated plugin – Export the FAQ (under the Tools) – Restore to the
   most current backup – Import the FAQs
 * This will create the categories again, but it will change the category IDs. You
   will need to update the shortcodes, but that is easier than recreating the categories
   and linking up the FAQs to the categories.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sub-Category List of Posts](https://wordpress.org/support/topic/sub-category-list-of-posts/)
 *  Thread Starter [mentalward](https://wordpress.org/support/users/mentalward/)
 * (@mentalward)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/sub-category-list-of-posts/#post-3864400)
 * Thank you so much! That’s prefect. I am fairly new to this but I knew it was 
   something as simple a clearing the array’s data.
 * Thank you!
 * Also, I read that on the reference page, but I figured I’d update it after I 
   got it completely working.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Download Shortcode] WordPress 3.5 link adding 'http://' to middle of url](https://wordpress.org/support/topic/wordpress-35-link-adding-http-to-middle-of-url/)
 *  [mentalward](https://wordpress.org/support/users/mentalward/)
 * (@mentalward)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/wordpress-35-link-adding-http-to-middle-of-url/#post-3358477)
 * I am having the same issue. I am testing it locally before I go to Prod. My test
   environment:
 * 1) Custom Structure: /%category%/%postname%/
    2) WAMP for local and Apache (not
   sure on the specific version) 3) I am using Multisite, but my files are uploaded
   to “/files/YEAR/MONTH/FILENAME” 4) Installed in the root 5) WP 3.5.1
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Display Category Name on Single Post](https://wordpress.org/support/topic/display-category-name-on-single-post/)
 *  Thread Starter [mentalward](https://wordpress.org/support/users/mentalward/)
 * (@mentalward)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/display-category-name-on-single-post/#post-3355170)
 * This is what I finally came up with to make it work. I am still trying to find
   a cleaner (and dynamic) way to display the information for the post, but it works
   for now and does what I need.
 *     ```
       <?php
       if ( is_category()) {
       	$imgurl = get_bloginfo('stylesheet_directory') . '/images/'; 			// Sets the image path
       	$thisurl = 'http://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];	// Current URL
       	$rssurl = get_category_feed_link( get_query_var('cat') );				// Generates the RSS Blog URL
       	$current_cat = single_cat_title("", false); 							// Displays the child cat name
   
       	echo '<div id="blogheader" class="group"><h2><a href="' . $thisurl . '">'. $current_cat .'</a></h2><div id="rss"><a rel="nofollow" title="Subscribe to the ' . $current_cat .' category" href="'. $rssurl . '"></a></div></div>';
       }
       elseif ( is_single()) {
       	$imgurl = get_bloginfo('stylesheet_directory') . '/images/'; 	// Sets the image path
       	$thisurl = 'http://' . $_SERVER["HTTP_HOST"];					// Current URL
       	$category = get_the_category();									// Gets the Categories for the Post
       		foreach ( $category as $cat ) {
       			if ($cat->cat_ID != "15") {		// Won't Display "Blog"
       				$thisurl = $thisurl . '/category/blog/' . $cat->slug . '/'; 	// Category Blog URL
       				$rssurl = $thisurl . 'feed/';										// Category Blog RSS Feed
       					echo '<div id="blogheader" class="group"><h2><a href="' . $thisurl . '">'. $cat->cat_name .'</a></h2><div id="rss"><a rel="nofollow" title="Subscribe to the ' . $cat->cat_name .' category" href="'. $rssurl . '"></a></div></div>';
   
       			}
       		}
       }
       ?>
       ```
   
 * No matter how I sorted/retrieved the categories the “Blog” was normally the first
   one returned. So, I couldn’t rely on calling the second item in the array. This
   way I have it loop only if it isn’t the “Blog” category.

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