Jan Koester
Forum Replies Created
-
Forum: Plugins
In reply to: [RecipePress Reloaded] A problem with accessing mysite.com/abc/recipesI guess the problem is related to the way the main_query is menipulated by the plugin(s). Please try to replace the function
query_recipes()in php/class/rpr_core.php lines 192 and following byfunction query_recipes($query) { // Don't change query on admin page if (is_admin()){ return; } if ( ! is_admin() && $query->is_main_query() ) { // Post archive page: if ( is_post_type_archive( 'rpr_recipe' ) ) { //set post type to only recipes $query->set('post_type', 'rpr_recipe' ); return; } // All other pages: // add post type to query $post_type = $query->get('post_type'); if( is_array( $post_type ) && ! array_key_exists( 'rpr_recipe', $post_type ) ){ $post_type[] = 'rpr_recipe'; } else { $post_type = array( 'post', 'rpr_recipe' ); } $query->set( 'post_type', $post_type ); return; } }This might solve your problems.
Forum: Plugins
In reply to: [RecipePress Reloaded] Version .7 Breaks my portfolio itemsI won’t be able to test the plugin with your theme so I will need your help.
Could you please try to replace the functionquery_recipes()in php/class/rpr_core.php line 192 and following byfunction query_recipes($query) { // Don't change query on admin page if (is_admin()){ return; } if ( ! is_admin() && $query->is_main_query() ) { // Post archive page: if ( is_post_type_archive( 'rpr_recipe' ) ) { //set post type to only recipes $query->set('post_type', 'rpr_recipe' ); return; } // All other pages: // add post type to query $post_type = $query->get('post_type'); if( is_array( $post_type ) && ! array_key_exists( 'rpr_recipe', $post_type ) ){ $post_type[] = 'rpr_recipe'; } else { $post_type = array( 'post', 'rpr_recipe' ); } $query->set( 'post_type', $post_type ); return; } }This should solve the problem.
Forum: Plugins
In reply to: [RecipePress Reloaded] A problem with accessing mysite.com/abc/recipesThanks for reporting this bug. I can confirm the misbehaviour of the plugin and will try to fix it asap.
Some things seem to have gone wrong with this release.Forum: Plugins
In reply to: [RecipePress Reloaded] Version .7 Breaks my portfolio itemsThanks for reporting this.
I’ve been almost sure to have ruled out all these query related problems but somehow it seems I still got it wrong. I will like into this asap.
Could you please tell me what you mean by “portfolio”? I guess this is another plugin creating a custom post type.
Forum: Plugins
In reply to: [RecipePress Reloaded] WP not working after plugin installationFor a quick fix replace line 72 in rpr_taxonomies.php by
if( isset( $this->taxonomies['rpr_category'] ) ){ unset($this->taxonomies['rpr_category']); }Please tell if this was a fresh install or if it was an upgrade.
Forum: Plugins
In reply to: [RecipePress Reloaded] display posts through categoriesShould be fixed in release 0.7.0.
Forum: Plugins
In reply to: [RecipePress Reloaded] Found two small bugs in codeFixed in 0.7.0 which I just released.
Forum: Plugins
In reply to: [RecipePress Reloaded] Can't Add New Recipe TaxonomiesRelease 0.7.0 is out and should solve both your problems.
Forum: Plugins
In reply to: [RecipePress Reloaded] Can't Add New Recipe TaxonomiesExcerpts should be working with release 0.7 which I hope to release next week.
The other issue needs some investigation. Thanks for reporting!
Forum: Plugins
In reply to: [RecipePress Reloaded] Find a word in instruction?Hi,
I will look into this as soon as possible. Currently I don’t know how to fix this and I do have very little time to work on this plugin. so please be patient.
Forum: Plugins
In reply to: [RecipePress Reloaded] display posts through categoriesAs I’m currently really busy with real job as a teacher and have no currently access to my development environment it will probably take some time to fix this bug.
Including into posts and pages should be possible using a shortcode that is not yet documented. By having a short look at the code it should be something like
[rpr-recipe id=123]I hope I could help you. And I hope I can fix the code and the documentation quite soon.
Forum: Plugins
In reply to: [RecipePress Reloaded] Found two small bugs in codeThanks for reporting these bugs. Will fix them in the next release. However this might take some time as I’m currently very busy with my real job…
Forum: Plugins
In reply to: [RecipePress Reloaded] No deactivation of plugin?Also nothing to worry about. Maybe take it as a sign of not really nice code. Actually it’s just a notice not even a warning …
Regards Jan
Forum: Plugins
In reply to: [RecipePress Reloaded] No deactivation of plugin?It’s a known problem. As long as you don’t have specified nutritional information but activated displaying this information PHP is complaining about an empty array.
Nothing to worry about.
BTW: better switch off debug mode on a public site as it reveals path information that coul be used in an attack.
Forum: Plugins
In reply to: [RecipePress Reloaded] How do I change the language of the plugin?Never did that before. Actually the file you need is not listed there. I dont know how those files are chosen.
Please use a ftp programm to get access to all your files – your provider will know how to do that. Then edit wp-content/plugins/recipepress-reloaded/templates/rpr_default/recipe.php with a text editor of your choice.