RUBYHAUS
Forum Replies Created
-
Forum: Plugins
In reply to: Widget Logic Conditional for bbPressI suppose if you have more than 1 Forum Name you could do this too:
is_bbpress( ‘forum’,’coolforum’,’anotherforum’ )Forum: Plugins
In reply to: Widget Logic Conditional for bbPressThanks 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
In reply to: Widget Logic Conditional for bbPressbb_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
In reply to: [Widget Logic] [Plugin: Widget Logic] Single Page Logic Not Workingoops 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
In reply to: [Widget Logic] [Plugin: Widget Logic] Single Page Logic Not WorkingOk 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
In reply to: [Widget Logic] [Plugin: Widget Logic] Single Page Logic Not WorkingI 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
In reply to: [Widget Logic] [Plugin: Widget Logic] Single Page Logic Not WorkingAlso 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.
https://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.
Forum: Plugins
In reply to: [Plugin: Widget Logic] Categories Double Parent VS Children IssuesFigured 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
In reply to: Trouble with If/Else using interwoven PHP callsOk… 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
In reply to: [Plugin: Widget Logic] Categories Double Parent VS Children IssuesThis is essentially what my Right Column looks like on my Inspiration Category Page:
RECENT INSPIRATION — Widget
Test for Web Design
July 20th, 2012Test Inspiration
May 24th, 2012Inspiration Categories — Widget
Inspiration
— web design
News (this is a parent category that should not be listed???)
Forum: Plugins
In reply to: [Cool Video Gallery] [Plugin: Cool Video Gallery] Video between copyaquariumdigital
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
In reply to: [Cool Video Gallery] [Plugin: Cool Video Gallery] Video between copyI’m having the exact same issue. Enough said. Ditto that first thought.
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
In reply to: %1$s inserts category name as a hyperlink – how not link?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
In reply to: Pulling Pages into Pages nesting HTML within echo statementsNever 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