I need help with the search bar, how can I remove Guests and put adults and children selection?
also, how can I set the maximum number of adults and children for each resource or room I have?
Hoping for your soonest response
Regards,
Josh
Use case: A directory of business listings with deep category structure. Listings are assigned to some of those deep categories, but not necessarily to the root categories.
When providing cat=”1″, can I somehow (perhaps with a hook) expand the category selection to 1 plus the whole branch of children and grand-children?
]]>It works apart from the featured image, and just can’t work out what I’ve done wrong. Really appreciate any help. G
<div id="current">
<?php
$args = array(
'post_type' => 'page',
'posts_per_page' => -1,
'post_parent' => '442',
'order' => 'ASC',
'orderby' => 'menu_order'
);
$childrens = new WP_Query( $args );
if ( $childrens->have_posts() ) : ?>
<?php while ( $childrens->have_posts() ) : $childrens->the_post(); ?>
<div class="each-20" id="child-<?php the_ID(); ?>">
<div class="img_holder"><a href="<?php the_permalink(); ?>"><img src="<?php get_the_post_thumbnail(); //display featured image ?>"></a></div>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p><?php the_content(); ?></p>
</div>
<?php endwhile;
endif;
wp_reset_query();
?></div>
]]>The structure is set-up like this at the moment:
- Themes (archive page)
- Theme 1 (CPT "themes")
-- Sub theme 1 (CPT "themes")
-- Sub theme 2 (CPT "themes")
-- Sub theme 3 (CPT "themes")
- Theme 2 (CPT "themes")
-- Sub theme 1 (CPT "themes")
-- Sub theme 2 (CPT "themes")
-- Sub theme 3 (CPT "themes")
The issue that I’m having is that the archive page shows all the theme’s and subtheme’s. I would like it to only display the first level of theme’s. So it would be nice if the archive page should just list:
Themes (archive page)
- Theme 1 (CPT "themes")
- Theme 2 (CPT "themes")
And then when you open Theme 1 it should display the content of the custom post type which could be text and some images. Below it is should list:
-- Sub theme 1 (CPT "themes")
-- Sub theme 2 (CPT "themes")
-- Sub theme 3 (CPT "themes")
-- etc.
Am I forgetting some kind of setting that I could activate to exclude all of the sub theme’s/posts from the automatic archive page? Or do I need to add some updates to a query somewhere? I’ve seen some examples where they add some specific override in the functions.php to adjust things. I just couldn’t get it to work in my situation.
Every help would be appreciated. Thanks a lot!
]]>I’d like to filter child taxonomies, but I don’t see the option.
I fact, I have created hierarchical taxonomies, the same way I do with categories.
For instance, I run a travel blog.
So category hierarchy is : Country -> Zone -> Region -> City
and I created a separate taxonomy for my travel guides :
City Guides
– Where to Go
– Where to Stay
– etc…
Now I need to filter ONLY the city guides from other cities while excluding the child categories.
Is there a way to do so? If not it would be a great addition
In advance many thanks
]]>Thanks for the help.
]]>Having trouble finding a plugin that can solve my membership needs.
I have this volunteer club for kids where I need a membership or signup system that enables me to have the parents register with informations about herself or himself.
That includes informations that should not be shown on any public profile page – but only to administrator/staff members. (Like social security number)
At the same time, I need that parent to be able to signup one or more kids to the club. The kids account should be linked to the parents account so that we (staff) can see the association. (In case of emergencies)
And at the same time the parent should be able to signup for volunteer shifts at the club on specific dates with a maximum numbers of volunteers per shift.
Does anyone now of any plugin or combination of plugins that could cover my needs?
Thanks for helping.
Dan Hansen