Archie Makuwa
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Add subcategory filter in category templateThanks a lot. The thing is I already have that setup running which I coded manually.
I have main categories, ie: Chocolates | Cars. They all filter using quicksand.js on individual pages. So if you goto: https://www.demo.co.za/categories/chocolates – you get a unique filter of chocolates.
Below that I have a dropdown list which has the chocolate brands, now I can’t get that to work (do more filtering).
??
Thanks though, will keep fighting ??
Hi,
Did you come right? I have the following code on my side:
<!-- Filter per sub-category --> <h3>Filter your results</h3> <?php // $this_category = get_category(get_query_var('cat'),false); $cat_ID = (int)get_query_var('cat'); $results = get_categories('&child_of='.$cat_ID.'&hide_empty'); ?> <select name="sub-filter" ONCHANGE="location = this.options[this.selectedIndex].value;"> <?php foreach ($results as $res){ echo '<option value= "'; echo network_site_url() . '/category/' . $mylink->slug . '/' . $res->slug ; echo '"'. '>'; echo $res->name; echo '</option>'; var_dump($mylink); } ?> </select>
What happens there, I have used the default category listing. The top category takes you to the parents taxonomy menu (www.site.com/category/chocolate).
From the above link, you get a dropdown list with all the chocolates (black chocolate, etc). However I cannot get the above code to filter some more. How did you work your way around the code?
Forum: Themes and Templates
In reply to: Add subcategory filter in category templateHi there!!
Did you come right? Here I am three months down the line looking for the same solutions…
Forum: Fixing WordPress
In reply to: Can't Deactivate PluginsOr if you won’t require that plugin again – just logon to your serve and delete it. You might have to clean up your database structure if you are the neat type.
Forum: Fixing WordPress
In reply to: Remove white space above page content after removing page titleHi,
1) I see an empty paragraph.
2) I see a padding of 1.625em around most of your divs.
Use Firebug to go through your HTML/CSS.
Forum: Fixing WordPress
In reply to: Retun Taxonomy Terms#RESOLVED
Forum: Fixing WordPress
In reply to: Retun Taxonomy TermsAh, you two geniuses ??
The following code worked:
$myprovince = get_post_meta( $post->ID, 'province' ); foreach( $myprovince as $term ) { echo ( $term [name]); }
Forum: Fixing WordPress
In reply to: Retun Taxonomy TermsI also tried the following:
$myprovince = get_post_meta( $post->ID, 'province', true ); echo ($myprovince->name); //aware of this print_r ($myprovince->name); //also aware
No result. Nothing gets output to the website. What am I doing wrong?
Can I scream?
Forum: Fixing WordPress
In reply to: Retun Taxonomy TermsScott,
You are the man!! (Well, you have heard that one before). I am able to get the selected taxonomy terms but the code:
$myterms = get_post_meta( $post->ID, 'province' ); echo ( $myterms );
But then the output is just: Province: Array
A var_dump displays the following output:
array (size=1) 0 => array (size=9) 'term_id' => string '34' (length=2) 'name' => string 'Mpumalanga' (length=10) 'slug' => string 'mpumalanga' (length=10) 'term_group' => string '0' (length=1) 'term_taxonomy_id' => string '84' (length=2) 'taxonomy' => string 'provinces' (length=9) 'description' => string '' (length=0) 'parent' => string '0' (length=1) 'count' => string '0' (length=1)
In that instance the province that matched the selected province instance is selected (Mpumalanga), but how do I display that province name after instead of the currently displaying (Array)?
Forum: Fixing WordPress
In reply to: Retun Taxonomy TermsHi Scott,
Thank you for the reply. I have the following setup:
– Field Type: Relationship
– Related to: The custom taxonomy I created (in this case ‘Provinces’).That is the only settings I have touched, and I manually wrote the code for the Taxonomy list. Is there something I am missing?
I am able to save the terms and they save (the are not lost when I want to edit the content over again).
Forum: Fixing WordPress
In reply to: Retun Taxonomy TermsHi Wpismypuppet!
Basically I have a custom post type setup (using Pods). There a user can select a province from a list of checkboxes (so they can basically select more than one province).
On the front-end, I want the list selected province/s taxonomy terms to display on the page, thus the:
$myterms = get_term( $post->ID, 'provinces' );
Am I doing anything wrong?
Forum: Fixing WordPress
In reply to: Using SASS with WordPressHi,
I am fairly new to Sass myself. I use it on a local development and this was mostly motivated by the responsive theme – Bones by Eddie Machado (https://eddiemachado.com/)
On my local machine I simply installed ScouttApp (https://mhs.github.com/scout-app/) which is fairly easy to use and learn.
To get a grasp and Sass, you may consider working from an already existing sass template (layout) such as the bones theme before diving into the hard core stuff. There are plenty of themes using sass out there.
Good luck!