Forums Forums Search & Filter Pro Search All the subcategories

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #79966

    Hi there,
    I’m trying to make a search based on languages.
    http://mdl.lizard-apps.com/model-contracts1/

    I want users to be able to choose a language or simply choose All languages. If I make a main category Languages and subcategories Dutch, French I m able to add those in the search and filter, by excluding rest of the categories..I would have expect that I can only decide to have the main category, and the subcategories will be added automatically. However I have to click one by one in each subcategroy if I would like to see them in the search dropdown under the main category (and i have like 200-300 under each category..). That is problem one.

    Another thing is that on the dropdown of the search of the languages, I see
    All categories
    Dutch
    French
    Languages

    Initially I thought that All categories will display all the subcategories under the main category, however it is displaying all categories that exist in general.
    I have realized that “Languages” is actually displaying all the subcategories.
    I would like to know how to remove that “all categories” or make it in a way which upon click will show all the languages.

    Third thing, If I would use the main category “Languages” I can see on the result page a list of the subcategories and the name of the main category like this:

    Dutch
    Language

    I wonder why this one is showing the main category? Or even if it does, no one is able to understand what is main category, what is sub…no hierarchy displayed here.

    I will appreciate your help or advice on how to make this working.

    Thanks a lot.
    Gordana

    Anonymous
    #80175

    Additionally, I have realized I’m not able to make a search based on multiple categories.
    For instance I clicked English from the first category and general commercial contract from the second category, and it only shows result based on one selection.

    How do I make a multiple selection workable?

    Thank so much

    Anonymous
    #80177

    Is there anyway that we can skype? My project deadline is Monday and I m kind of feeling very stressed that I cant make this plugin working.

    Thank you

    Trevor
    #80204
    This reply has been marked as private.
    Trevor
    #80256

    Great to speak with you. All it required, I think, was the categories to be moved into Custom Taxonomies. Let me know if I can close this thread?

    Anonymous
    #81605

    Hi Trevor,
    Thank you for your help. You are really amazing.

    The taxonomy thing is working. Now users are able to search based on multiple taxonomies.
    However I’m not sure how to display those taxonomies on the main and individual page of each contract.That is one thing.
    Another thing is I would like to show only certain taxonomies on the search page and all of them on the individual contract page. This is to avoid long list of taxonomies on the search page.

    I know for tags is “<?php the_tags(”, ‘, ‘, ‘<br />’); ?>” and also tried <?php get_the_term_list( $id, $taxonomy, $before, $sep, $after ) ?> for the taxonomies, but nothing happened.

    This is my search page http://mdl.lizard-apps.com/model-contracts/

    I would like to show them under the meta data in the same line with “By _______” starts

    This is my code:
    <div class=”backgroundw”>

    <h2>“><?php the_title(); ?></h2>
    ?php the_excerpt(); ?>

    <?php wpuf_show_custom_fields( the_content() ); ?>

    <hr/>
    <div class=”floatleftww”><?php echo get_avatar( get_the_author_meta( ‘ID’ ), 32 ); ?></div>

    <?php echo avada_render_post_metadata( ‘standard’ ); ?>
    <div class=”floatrightww”><?php echo ‘‘ . apply_filters( ‘avada_read_more_name’, ‘More details’ ) . ‘‘; ?> </div>

    </div>

    Thanks a lot.
    Gordana

    Trevor
    #81628

    Here is a code snippet from another post:

    				<div class="research_cats">
    				<?php 
    				$terms = get_the_terms( $post->ID, 'region-category' );
    				if ( $terms && ! is_wp_error( $terms ) ) :
    				   $post_terms = array();
    				   foreach ( $terms as $term ) {
    					  $post_terms[] = $term->name;
    				   }
    				   $post_terms = join( "<span class='terms-divider'></span>", $post_terms ); ?>
    
    				   <p><b><i><span><?php echo $post_terms; ?></span></i></b></p>
    
    				<?php endif; ?>
    			</div>
Viewing 7 posts - 1 through 7 (of 7 total)