Home › Forums › Weaver Xtreme Theme › Show Feed Shortcode – Bug? Typo? User?
- This topic has 4 replies, 2 voices, and was last updated 7 years ago by
Skippy.
-
AuthorPosts
-
June 7, 2015 at 01:23 UTC - Views: 2 #17864
Skippy
ParticipantI’m attempting to use the [feed] shortcord.
If I do this, it works.
[feed feed='https://drestanol.wordpress.com/feed/' items=3 show_sitename=0 show_content=0 excerpt=1 trusted=1 title_style='']
When I try to add font-size to the title_style all the content on the page under the menu vanishes.
The plus-help file says this:
- title_style=’inline-style-rules’ – Allows you to
change the styling of the post title. Don’t include the ‘style=’ or
wrapping quotation marks. Do include a ‘;’ at the end of each rule.
The output will look likestyle="your-rules;"
– using
double quotation marks. This is most likely useful to reduce the
title size (e.g.,style='font-size=100%;'
)
Example
To show the WP Weaver Theme feed in a regular page, use:
[feed feed='http://weavertheme.com/feed/' trusted=1
title_style='font-size:110%;']
In one place I’m seeing the format is
‘font-size:110%;’
in another place I see this
'font-size=100%;'
I have tried both formats and both result in the page being broken.
Things that don't work are:
[feed feed='https://drestanol.wordpress.com/feed/' items=3 show_sitename=0 show_content=0 excerpt=1 trusted=1 title_style='font-size=100%;']
[feed feed='https://drestanol.wordpress.com/feed/' items=3 show_sitename=0 show_content=0 excerpt=1 trusted=1 title_style='font-size:100%;']
What am I missing here? Thanks.
June 7, 2015 at 01:34 UTC - Views: 11 #22538Weaver
Keymaster@Skippy –
Well – that’s all my fault! And you must be the first person to try that! There was a misnamed function from the conversion from Weaver II to Weaver Xtreme, and you were getting PHP error crash.
The proper syntax is title_style=”font-size:120%;”. Shortcodes use = to specify option values.
I will update Weaver Xtreme Plus shortly.
EDIT: The 1.2.2 version should show up in your WP Update notices soon.
June 7, 2015 at 01:54 UTC - Views: 3 #22539Skippy
ParticipantGreat. Thanks. I’ll be looking for the update.
How complex is it to add displaying featured images to this shortcode? Would that be possible?
June 8, 2015 at 01:00 UTC - Views: 3 #22540Weaver
KeymasterThe content of the [feed] shortcode comes from the content of the feed itself. The content is provided by a standard WordPress core function. The [feed] can just show the feed “description” which is generated by the WordPress core – the excerpt may or may not be really short, so the ‘excerpt’ option forces it to be short.
There also is a feed “content” which may or may not be longer and may or may not include images depending the the Settings : Feed options.
I will add a new option to [feed] that will allow the full content to be displayed, but it can be only an all or nothing thing – either the description/excerpt, or the full content of each post.
If you’d like to try this new ‘full_content=1’ option for the shortcode, send me an e-mail directly (weaver at weavertheme dot com), and I will send you the new version to try.
June 15, 2015 at 16:29 UTC - Views: 3 #22541Skippy
ParticipantSure, I’ll test it out. I’ll try anything twice.
Thank you.
I’ll email you soonish….
- title_style=’inline-style-rules’ – Allows you to
-
AuthorPosts
- You must be logged in to reply to this topic.