berttervoert
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Recipe Maker] rating stars not showingI’ve send an email.
Forum: Plugins
In reply to: [WP Recipe Maker] rating stars not showingI’m using a custom template part to show a single recipe. I use a child theme of the fooding theme. I altered the single.php file so it checks wether the post has a tag ‘recipe’ an if so it selects my custom content-single-recipe.php template part to construct the recipe.
So selecting legacy mode is going to work in my case. When I select the fooding theme, it does show the rating stars. But the child theme uses the comments.php file from the fooding theme, so shouldn’t that part be the same then?
Forum: Plugins
In reply to: [WP Recipe Maker] Displaying content of last recipe only on frontpageThank you for your reply. I managed to get it working now. The code now is as follows:
<div class="fp-recipes-container-titel"> MEEST RECENT: KOKEN </div> <div class="fp-spacer-hori-in-container"> </div> <?php $myCatQuery = new WP_Query ( 'category_name=koken&posts_per_page=4' ); if ( $myCatQuery->have_posts() ) { while ( $myCatQuery->have_posts() ){ echo '<div class="fp-recipes-blok">'; $myCatQuery->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 '<div class="fp-recipes-blok_recipe-image">'; echo do_shortcode( '[wprm-recipe-image id="' . $recipe_id . '"]' ); echo '</div>'; echo '<div class="fp-recipes-blok_recipe-titel">'; ?><a href="<?php the_permalink(); ?>"><?php the_title() ?></a> <?php ; echo '</div>'; echo '<div class="fp-spacer-hori-in-blok"></div>'; echo '<div class="fp-recipes-blok_recipe-summary">'; echo do_shortcode( '[wprm-recipe-summary id="' . $recipe_id . '"]' ); echo '</div>'; echo '</div>'; } wp_reset_postdata(); } else { echo '<div class="fp-no-post-center">'; echo 'Sorry, (nog) geen posts gevonden voor deze categorie.'; echo '</div>'; } ?> </div>
Forum: Plugins
In reply to: [WP Recipe Maker] custom frontpage displayThanks again for your answer! Since this is just a hobby project for me at this time, I’m using free themes and plugins only for the moment.
The article in the first link looks promissing! I think it will give me a begin to experiment with and get to grips with the matter.Thank you!
Forum: Plugins
In reply to: [WP Recipe Maker] custom frontpage displayI’m relative new to wordpress, but have experience in programming. Worked extensifly with drupal (until a few years ago). Now I’m working on a (hobby-)project of my own.
What I’m asking is how to ‘just’ get the latest x posts from each category.
Thank you for your quick response (One of the reasons I’m exploring your plug-in!
Bert.Forum: Plugins
In reply to: [WP Recipe Maker] custom frontpage displayYes, the markup is handeled by the theme, but it’s getting the recipe information from the 4 most recent recipes entered that I’m looking for. The data to put on the frontpage. I was wondering wether there was shortcode available to achieve this (as is on other plugins).
I would appreciate any anwer on this.Meanwhile I’ll look into your suggestion about the grid
Forum: Plugins
In reply to: [Cooked - Recipe Management] double questionThank you for your reply. I’m making a child theme. Do I use the shortcode in the html code or how do I get about that?