Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    Thread Starter mentalward

    (@mentalward)

    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.

    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

    Thread Starter mentalward

    (@mentalward)

    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)