Title: RUBYHAUS's Replies | WordPress.org

---

# RUBYHAUS

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Widget Logic Conditional for bbPress](https://wordpress.org/support/topic/widget-logic-conditional-for-bbpress/)
 *  Thread Starter [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/widget-logic-conditional-for-bbpress/#post-3223388)
 * I suppose if you have more than 1 Forum Name you could do this too:
    is_bbpress(‘
   forum’,’coolforum’,’anotherforum’ )
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Widget Logic Conditional for bbPress](https://wordpress.org/support/topic/widget-logic-conditional-for-bbpress/)
 *  Thread Starter [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/widget-logic-conditional-for-bbpress/#post-3223387)
 * Thanks Kuasha42. I did see that but wasn’t sure what it was as it was MP then
   I went back after you posted and saw the bb part. Thanks for reposting that link!!!
 * Because I named my Forum “forum”… This worked like a champ. I added it to every
   bbPress widget and now only the bbPress widgets show up on the Forum pages and
   not on the WordPress Blog pages/categories.
 * `is_bbpress( 'forum' )`
 * And this is what all my Blog widgets look like.
 * `is_category( array( '1' ) ) || (is_single( array( '1' ) ) && in_category( array('
   1' ) ) )`
 * I use arrays so that I can target specific categories and such I want them to
   be visible on.
    That would look like this:
 * `is_category( array( '1','8','23' ) ) || (is_single( array( '1','8','23' ) ) &&
   in_category( array( '1','8','23' ) ) )`
 * There are probably better ways of doing this but this has worked great for me
   and been more consistent and bullet proof. I also have lots of flexibility doing
   it this way.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Widget Logic Conditional for bbPress](https://wordpress.org/support/topic/widget-logic-conditional-for-bbpress/)
 *  Thread Starter [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/widget-logic-conditional-for-bbpress/#post-3223371)
 * `bb_is_forum( 'myForumNameiCreated' )`
 * produces a Fatal Error:
 * Fatal error: Call to undefined function bb_is_forum() in /nfs/c10/h05/mnt/150010/
   domains/hskinrepair.com/html/wp-content/plugins/widget-logic/widget_logic.php(
   270) : eval()’d code on line 1
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Widget Logic] [Plugin: Widget Logic] Single Page Logic Not Working](https://wordpress.org/support/topic/plugin-widget-logic-single-page-logic-not-working/)
 *  Thread Starter [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-widget-logic-single-page-logic-not-working/#post-3010051)
 * oops here is the correct code.
 * `is_category( array( '6', '7', '14' ) ) || (is_single( array( '6', '7', '14' ))&&
   in_category( array( '6', '7', '14' ) ) )`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Widget Logic] [Plugin: Widget Logic] Single Page Logic Not Working](https://wordpress.org/support/topic/plugin-widget-logic-single-page-logic-not-working/)
 *  Thread Starter [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-widget-logic-single-page-logic-not-working/#post-3010036)
 * Ok so I resolved when you’re on “New” category page where it shows on that categories
   posts using:
 * `is_category( array( '6', '7', '14' ) ) || (is_single( array( '6', '7', '14' ))&&
   is_category( array( '6', '7', '14' ) ) )`
 * But still NO single page widgets are visible.
 * I thought is_single would be the answer but not likely so it seems.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Widget Logic] [Plugin: Widget Logic] Single Page Logic Not Working](https://wordpress.org/support/topic/plugin-widget-logic-single-page-logic-not-working/)
 *  Thread Starter [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-widget-logic-single-page-logic-not-working/#post-3010030)
 * I guess really the issue is… can you do multiple Categories suchas:
 * is_category(‘6,7,14’) || (is_single() && in_category(‘6,7,14’))
 * doesn’t seem easy to allow this. Just disappears when I try to.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Widget Logic] [Plugin: Widget Logic] Single Page Logic Not Working](https://wordpress.org/support/topic/plugin-widget-logic-single-page-logic-not-working/)
 *  Thread Starter [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-widget-logic-single-page-logic-not-working/#post-3010023)
 * Also I’m using Special Recent Posts Free Edition and AVH Extended Categories.
 * Special Recent Posts works on all pages (seems correct)
 * But AVH Extended does not show up on the individual category pages just the All
   Category Page.
 * [http://rubyhaus.com/category/inspiration/](http://rubyhaus.com/category/inspiration/)
 * once you chose an article you’ll see the categories on right sidebar disappear.
 * But then if you click on an actual category name now you’re under a new URL and
   no Sidebar Widgets show up at all.
 * [http://rubyhaus.com/category/mobile-app-design/](http://rubyhaus.com/category/mobile-app-design/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Widget Logic] Categories Double Parent VS Children Issues](https://wordpress.org/support/topic/widget_logic-categories-double-parent-vs-children-issues/)
 *  Thread Starter [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/widget_logic-categories-double-parent-vs-children-issues/#post-2910208)
 * Figured this one out. It was actually not a Widget Logic issue but instead a 
   Category Widget issue.
 * I found this plugin
 * AVH Extended Categories
 * Works like a champ. Group, re-order, explicitly list categories you want visible.
   Pretty sweet.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Trouble with If/Else using interwoven PHP calls](https://wordpress.org/support/topic/trouble-with-ifelse-using-interwoven-php-calls/)
 *  Thread Starter [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/trouble-with-ifelse-using-interwoven-php-calls/#post-2933238)
 * Ok… I completely understand what your saying. I definitely want to get and understand
   PHP. So though this is going to likely be incorrect to answer your question as
   to what I’m trying to do…
 * I’ll try and mock it as better incorrect PHP LOL!!!!!
 *     ```
       //ADD CATEGORY TITLE AT TOP OF CAT PAGES
       add_action('pagelines_inside_top_postloop','cat_title');
       function cat_title(){
        if (get_post_type('post') ) {
          print <h1 class="cat-title"><?php single_cat_title(); ?></h1>
        }
        else (get_post_type('page') ) {
          print DONT PRINT ANY HTML STRIP IT OUT. Cause it prints a blank
                H1 tag when it's a Page.
        }
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Widget Logic] Categories Double Parent VS Children Issues](https://wordpress.org/support/topic/widget_logic-categories-double-parent-vs-children-issues/)
 *  Thread Starter [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/widget_logic-categories-double-parent-vs-children-issues/#post-2910040)
 * This is essentially what my Right Column looks like on my Inspiration Category
   Page:
 *  **RECENT INSPIRATION — Widget**
 *  Test for Web Design
    July 20th, 2012
 *  Test Inspiration
    May 24th, 2012
 *  **Inspiration Categories — Widget**
    Inspiration — web design News **(this is
   a parent category that should not be listed???)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cool Video Gallery] [Plugin: Cool Video Gallery] Video between copy](https://wordpress.org/support/topic/plugin-cool-video-gallery-video-between-copy/)
 *  [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-video-between-copy/#post-2389734)
 * aquariumdigital
 * One thing I just figured out is, you know when the video shows the EMBED BOX 
   below?? Just copy the embed code and paste it where ever you want.
 * That worked for me.
 * However I think this is a very cool plugin worth tweaking and working on. It 
   would be nice to have it function properly into the post wherever you’ve asked
   it to be plopped.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cool Video Gallery] [Plugin: Cool Video Gallery] Video between copy](https://wordpress.org/support/topic/plugin-cool-video-gallery-video-between-copy/)
 *  [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-cool-video-gallery-video-between-copy/#post-2389733)
 * I’m having the exact same issue. Enough said. Ditto that first thought.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FA Lite - WP responsive slider plugin] [Plugin: Featured Articles Lite] choose custom post type](https://wordpress.org/support/topic/plugin-featured-articles-lite-choose-custom-post-type/)
 *  [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-featured-articles-lite-choose-custom-post-type/#post-2335985)
 * Hey!!! Nice work. This is exactly what I was looking for. I couldn’t find a way
   to post images into a slider from using the Custom Post Types UI.
 * This worked great. Thanks so much for this contribution.
 * This person needs to be notified to update the installation using your mods.
 * Nicely Done.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [%1$s inserts category name as a hyperlink – how not link?](https://wordpress.org/support/topic/1s-inserts-category-name-as-a-hyperlink-how-not-link/)
 *  [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/1s-inserts-category-name-as-a-hyperlink-how-not-link/#post-2253446)
 * I’m trying to figure this out too.
 * I made a new function.
 * Now just trying to figure out why %1$s produces the anchor tag version of the
   category name instead of just the plain text format instead??
 * I’m thinking it partly has to do with this as well: = __
 * ?? Not too sure? Cause the normal Category reference: %s
    does not work either
   in place of %1$s.
 *     ```
       if ( ! function_exists( 'designconcepts_posted_under' ) ) :
       /**
        * Prints HTML with title information for the current single post (category title).
        *
        * @since Design Concepts 1.0
        */
       function designconcepts_posted_under() {
       	// Retrieves tag list of current post, separated by commas.
       	$tag_list = get_the_tag_list( '', ', ' );
       	if ( $tag_list ) {
       		$posted_in = __( '%1$s', 'designconcepts' );
       	} elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
       		$posted_in = __( '%1$s', 'designconcepts' );
       	} else {
       		$posted_in = __( '%1$s', 'designconcepts' );
       	}
       	// Prints the string, replacing the placeholders.
       	printf(
       		$posted_in,
       		get_the_category_list( ', ' ),
       		$tag_list,
       		get_permalink(),
       		the_title_attribute( 'echo=0' )
       	);
       }
       endif;
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Pulling Pages into Pages nesting HTML within echo statements](https://wordpress.org/support/topic/pulling-pages-into-pages-nesting-html-within-echo-statements/)
 *  Thread Starter [RUBYHAUS](https://wordpress.org/support/users/rubyhaus/)
 * (@rubyhaus)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/pulling-pages-into-pages-nesting-html-within-echo-statements/#post-1879321)
 * Never mind.
 * I figured it out. Those interested in pulling another pages content into another
   page or multiple pages here is how:
 *     ```
       <div class="news_events">
       	<?php
         $page_id = 41; //ID of page from your WP admin panel
         $page_data = get_page( $page_id ); 
   
       	echo "<h1>" . $page_data->post_title . "</h1>";// Show page title
         echo $page_data->post_content; // Show page content
         ?>
         <br /><br />
         <a href="/wordpress/gccvb-calendar-of-events">>>more events...</a>
             </div>
       ```
   
 * basically copy this div and place it in each area on the page such as the home
   page. Sync up each div’s PHP id number to the corresponding page you wish to 
   pull into that area of your home page and blammo. Your rocking and rolling. Pulling
   pages into pages.
 * Sincerely,
    ~ Jonny of Rubyhaus

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