Add recipes to WordPress
manovotny / wp-recipe Goto Github PK
View Code? Open in Web Editor NEWAdd recipes to WordPress
License: GNU General Public License v3.0
Add recipes to WordPress
License: GNU General Public License v3.0
This commit already renamed "Tips" to "Notes" at the UI level, but the breaking change at the code level was deferred for a later time.
Currently in the cross reference classes.
When a post uses a shortcode to include a recipe, that post's id should be saved to the recipe's meta for reference and for recipe search results.
See these notes on the add_post_meta
documentation.
See register-scripts.php
and register-styles.php
for examples.
Look into using save_post_recipe
.
Also make sure that the heartbeat / autosave is not throwing any errors.
As requested by @iowagirleats.
Is there anyway you can add the recipe dropdown to the recipe quick edit? I had 40+ recipes already entered before this feature was added and if I can enter the difficulty at that bulk level, it would be a huge timesaver.
Would probably need to look into the quick_edit_custom_box action to make this happen.
For even faster ingredient entry.
Rather than just printing the recipe, which usually fits on a single page, IE likes to print an additional and unnecessary blank second page.
It's hella long and messy.
Some libraries / techniques to consider.
As reported by @iowagirleats:
I noticed something a little quirky when inputting recipes - it doesn't like quotations in the ingredient fields. For example, if I type in - 2" knob of ginger - and hit save, everything after the quotation is deleted, so in this example just the number 2 is left. The work around is writing out the word inch, but curious if this is an easy fix.
empty
class (probably italics)In admin/inc/save-post.php
:
wp_recipe_get_shortcode_attribute_values_used_in_content
wp_recipe_get_shortcodes_used_in_content
In admin/inc/shortcode.php
:
wp_recipe_shortcode
Code reference:
$html .= '<a href="' . get_edit_post_link( $post_id ) . '">' . get_the_title( $post_id ) . '</a>' ;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.