Recipe Shortcode Print screen not working
-
I am trying to use the Recipe Shortcode and I believe I have it pretty close, but the only thing not working is when I click on the print link it open the print window but it doesn’t include the entire recipe, it only shows the Title, servings, time and difficulty but then nothing else is included. I’m not sure why, but I thought I had it right because the recipe looks correct when I preview the blog post. Print screen error screenshot: http://screencast.com/t/3UBlpa5SlPA
Here’s the code I’m writing up to just copy / paste for each post:
[recipe][recipe title='Recipe Title Here' servings= 'add serving amount here ' time='add time here' difficulty='add here' image='https://cbeatsblog.files.wordpress.com/2016/08/img_5128.png']
[recipe-notes]
If any notes like linking to a source add them here, it will be in italics
[/recipe-notes][recipe-ingredients]
– item 1 (for the bullet to show add a dash and a space before each line with the space above)
– item 2
– item3
[/recipe-ingredients][recipe-directions]
do this. then this. and this. do this. then this. and this. do this. then this. and this. do this. then this. and this. do this. then this. and this. do this. then this. and this. do this. then this. and this.
[/recipe-directions][recipe-notes]
any additional tips can go here, they’ll be in italics
[/recipe-notes][/recipe]
The blog I need help with is: (visible only to logged in users)
-
-
Hey houstonweaver
Thanks for the reply. I added [/recipe-title] after the image code and it added the [recipe-notes] text into the printed text but then nothing after. Any other ideas?
Thanks!
-
You have 2 [recipe-notes] blah [/recipe-notes] sections. See what happens if you temporarily remove the last section.
-
Well according to the instructions, you may use it more than once, so that’s not the issue.
-
Ok, I made it work.
I was wrong about having a [recipe-title] element that needed both an open and a close. The word title is simply an attribute of recipe, so that first [recipe] you have is redundant.
Here is what worked for me: (after a couple of refreshes of the page)
[recipe title='Recipe Title Here' servings= 'add serving amount here ' time='add time here' difficulty='add here' image='https://cbeatsblog.files.wordpress.com/2016/08/img_5128.png'] [recipe-notes] If any notes like linking to a source add them here, it will be in italics [/recipe-notes] [recipe-ingredients] - item 1 (for the bullet to show add a dash and a space before each line with the space above) - item 2 - item3 [/recipe-ingredients] [recipe-directions] do this. then this. and this. do this. then this. and this. do this. then this. and this. do this. then this. and this. do this. then this. and this. do this. then this. and this. do this. then this. and this. [/recipe-directions] [recipe-notes] any additional tips can go here, they'll be in italics [/recipe-notes] [/recipe] -
So basically your first draft you posted without the first [recipe] . Just start with [recipe title …….
-
Thank you so so much houstonweaver! I removed the title end, and removed the [recipe] at the beginning like you said and it’s now showing all parts of the recipe in the print screen!! Huge thank you!
-
- The topic ‘Recipe Shortcode Print screen not working’ is closed to new replies.