berttervoert
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Author] Widgets in footer?I’m not using elementor pro, but could the plugin ‘header, footer & block’ possibly be a solution? If not, I’m familiar with coding (html, css, php).
Again, thanks for the quick respons, I realy apreaciate it as I do your theme! Hope to hear from you for further ideas.Forum: Themes and Templates
In reply to: [Author] Change logo sizethis is solved.
Forum: Themes and Templates
In reply to: [Author] Change logo sizeThanks for the quick response! works great!
Forum: Fixing WordPress
In reply to: Can I create this theme layout in WP?How right you are! I forgot to add the layout image for the mobile version. You’ll find it at the bottom of this reaction.
The logo / menu (hamburger) row sits on top of the mobile screen. Clicking on the hamburger icon unfolds the menu. The entire layout for mobile is one column, not two.
I’ve been working on another theme for myself with a horizontal navbar on larger devices which changes in a mobile navbar below a certain width of the screen. Now I want to get into mobile first, but as you have noticed, my thinking still leans towards computer / laptop first.
The layout for mobile:
https://www.dropbox.com/s/4gvaypucv941qeo/mobile%20layout.png?dl=0Forum: Themes and Templates
In reply to: [Flash] Center row contentI’m a free user. I tried the FT:image widget, but it doesn’t automatically center the content. I tried using it in a row and just as a widget below the FT:slider, but in both cases it aligns to the left.
I’m using the homepage from your demo content and I have deleted everything except the FT:slider. I first used the generic wordpress image widget and text widget, but they also align to the left. So I guess I have to add some css to center the content.Is there any major difference in using a widget in a row or just as is on a page?
Thanks again for your replyForum: Plugins
In reply to: [WP Recipe Maker] can you do a WP_Query on recipe term?.
Forum: Plugins
In reply to: [WP Recipe Maker] can you do a WP_Query on recipe term?I had changed that into $recipe already myself. At first I thought it wasn’t working with the shortodes, but then I saw I forgot to alter a variable in the shortcode. Now it’s working just fine! The code to output the search-result:
<div class="search-resultgrid-item"> <div class="search-rgr-block-image"> <?php echo do_shortcode ( '[wprm-recipe-image id="' . $post_id . '"]' ); ?> </div> <div class="search-rgr-block-title"> <a href="<?php the_permalink(); ?>"><?php the_title() ?></a> </div> <div class="search-rgr-block-summary"> <?php echo do_shortcode ( '[wprm-recipe-summary id="' . $post_id . '"]' ); ?> </div> </div>
(the problem was I copied the code from another template which had the variable $recipe_id in the shortcode. After changing that to $post_id it worked)
Thanks again for your quick respons!Forum: Plugins
In reply to: [WP Recipe Maker] can you do a WP_Query on recipe term?I changed my code again, with the suggestion in your first post:
while ( $tax_query->have_posts() ){ $tax_query->the_post(); // Get the recipes inside the current post. $post_id = get_the_ID(); $recipes = WPRM_Recipe_Manager::get_recipe( $post_id ); // Access the first recipe, if there is one. if ( isset( $recipes ) ) { echo 'result'; var_dump ($recipes); } if ( !isset ( $recipes ) ) { echo 'no result'; } wp_reset_postdata(); } } else { echo 'no posts found'; }
Now the var dump shows that a recipe is found. Do I have to get the parent post to be able to get image, title and summary of the recipe? Or how do I get about that?
Forum: Plugins
In reply to: [WP Recipe Maker] can you do a WP_Query on recipe term?I found an error myself:
$group = 'wprm-' . $_GET['recipeterm'];
should be:$group = 'wprm_' . $_GET['recipeterm'];
But still the query returns no result.
(I added a few lines to the previous code:
if ( isset( $recipes[0] ) ) { $recipe_id = $recipes[0]; $recipe = WPRM_Recipe_Manager::get_recipe( $recipe_id ); echo 'result'; } if ( !isset ( $recipes[0] ) ) { echo 'no result'; } wp_reset_postdata();
Forum: Plugins
In reply to: [WP Recipe Maker] can you do a WP_Query on recipe term?I got this code so far, but the query doesn’t seem to get any result:
// Get the result from the searchbar send with jquery. if ( isset ($_GET['option']) ){ $selected = $_GET['option']; echo $selected . '<br />'; } if ( isset ($_GET['recipeterm']) ) { $group = 'wprm-' . $_GET['recipeterm']; echo $group . '<br />'; } // build query to get all the recipe post id's requested by the searchbar result. $args = array ( 'post_type' => 'wprm_recipe', 'tax_query' => array ( array ( 'taxonomy' => $group, 'field' => 'term_id', 'terms' => $selected, ), ), ); $tax_query = new WP_Query ( $args ); if ( $tax_query->have_posts() ) { while ( $tax_query->have_posts() ){ $tax_query->the_post(); // Get the recipes inside the current post. $recipes = WPRM_Recipe_Manager::get_recipe_ids_from_post(); // Access the first recipe, if there is one. if ( isset( $recipes[0] ) ) { $recipe_id = $recipes[0]; $recipe = WPRM_Recipe_Manager::get_recipe( $recipe_id ); echo 'result'; } wp_reset_postdata(); } } else { echo 'no posts found'; }
I tried it with a selection that should result in one recipe, but I get the “no posts found”message on screen. Do you have an idea where I go wrong?
Forum: Plugins
In reply to: [WP Recipe Maker] can you do a WP_Query on recipe term?thank you very much!
Forum: Plugins
In reply to: [WP Recipe Maker] can you do a WP_Query on recipe term?Can I do the same for ingredients, so:
$args = array( 'post_type' => 'wprm_recipe', 'tax_query' => array( array( 'taxonomy' => 'wprm_ingredients', 'field' => 'term_id', 'terms' => array( 2, 34 ), ), ), );
or should that be something like
'ingredients_query' => array(...
Forum: Plugins
In reply to: [WP Recipe Maker] can you do a WP_Query on recipe term?Thank you, that’s very helpfull! i’ll get to work with this.
Forum: Plugins
In reply to: [WP Recipe Maker] can you do a WP_Query on recipe term?Yes that is what I’m referring to. I’m working on a searchbar where you can select recipes by course, cuisine or ingredient. The dropdown lists I build from the information stored in the database. The chosen option is then passed on to the redirected page (this part is already working) where the selection of recipes is made according to the passed option.
Forum: Plugins
In reply to: [WP Recipe Maker] rating stars not showing.