joemastro
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Database queries from within the loopAh.. Thank you! Sorry for the late response…. trying to figure out the Walker.
yani.iliev = awesome…
Thanks!
yani.iliev = awesome…
Thanks!
Forum: Plugins
In reply to: [Weekly Class Schedule] [Plugin: Weekly Class Schedule] json encode errorSweet… and with your fix, I won’t worry about the fix being overridden!
Best Regards, and thank you,
JoeForum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Vertical Grey LineAlright… I figured it out. I’m still a noob, but maybe this will help other’s:
My parent theme, where I was looking for “borders” was using a background image.
FIX:
If using a child theme, add the rule to your child theme css, removing the background image.If playing in the actual theme, just remove the rule. Remember, if your parent theme get’s updated, it will remove your rule.
Forum: Fixing WordPress
In reply to: Order terms by term/subterm with wp_get_post_termsResolved. Need to use wp_get_object_terms
<? $args=array('orderby'=>'parent'); $product_terms = wp_get_object_terms(get_the_ID(), 'ls-itin',$args); if(!empty($product_terms)){ echo "effing terms here"; if(!is_wp_error( $product_terms )){ echo ' <ul>'; foreach($product_terms as $term){ echo ' <li><a>slug, 'ls-itin').'">'.$term->name.'</a></li> '; } echo '</ul> '; }else echo"bologna"; } ?>
Forum: Fixing WordPress
In reply to: Advaanced quiries on custom data types.Sweet. I think I understand that. I’ll pop by your site to discuss it more when I get there. Now that I know I can query those posts, I will…. Now to merge the databases……
Wow….. Adventure in FORTRAN. Put bird in cage. Something about a snake. that one?
Forum: Fixing WordPress
In reply to: Advaanced quiries on custom data types.By “meta box” I mean the boxes/custom data fields created by :
<?php add_meta_box( $id, $title, $callback, $page, $context, riority );
Names are tour_date, num_days, additional_info
Example of category names for companies, and the types of tours:
“A & K”
“Africa” with “Egypt”, “Victoria Falls”, South Africa, etc under it.
“River Cruise”
“Family Friendly”
“Safari”
“no kids”etc., etc..
Forum: Fixing WordPress
In reply to: Advaanced quiries on custom data types.Thanks for answering.
Select * from (custom post type = itinerary)
Where tax_number_of_days between 7 and 14
And tax_departure_date between ‘2012-03-05’ and ‘2012-04-05’
And tax_tour_company = ‘Caravan Tours’
Order By tax_departure_dateItinerary is the custom post type.
Included in itinerary are meta boxes for number of days, date. Also included are the “categories” for a company, a tour type under the company, a main region, and regions broken down under the main region.
The itinerary is in the content itself.company “A & K” tour type “river cruise”
Region “Africa” sub-region “Nile River”