Shortcodes in the description field
-
Hi,
thank you for this great plugin.
I have a problem with the description field. I use Views Content Templates in the product short description field in my WooCommerce site.
[wpv-post-body view_template=”artworks-template”]
WPSSO does not process what’s inside my template and when I validate Facebook and Twitter og:description field is left empty and while the product can be shared on Facebook without og:description data on Twitter it causes an error and it cannot pull the image.
ERROR: Invalid value (message: Field description failed to validate because: text expects tag property, but not found in Map().)
I would appreciate your suggestion how to resolve this problem.
Many thanks
Alex
-
Have you read the sticky post? You forgot to include a URL to an example post / page, and describe the specific issue on that post / page. π
My guess is the “wpv-post-body” shortcode is not being loaded on the admin side, and the meta tags are first being updated from the admin interface (when you edit the post / page / product).
If you enable the Debug Messages option on the Advanced settings page, and provide a URL, I should be able to check further.
js.
Thank you very much for your reply. Sorry I forgot to include the page URL. Here it is:
http://strategieart.uk/product/marina-2
if you go to the Twitter Card Validator it cannot pull the image although it detects it. But when I deactivate WPSSO and swtich on Yoast CEO it’s own Open Graph/Schema?Twitter metas then sometimes the metas inside the template are processed and sometimes not. G+ and Facebook can retrieve them but Twitter cannot.
here is the Facebook and Google scrapper for this URL with WPSSO
I activated “Add Hidden Debug Messages” but it seems that I cannot paste it here. Can I send it some other way?
Many thanks for your help
Alex
-
This reply was modified 9 years, 8 months ago by
strategieart.
Thank you very much for your reply. Sorry I forgot to include the page URL. Here it is:
http://strategieart.uk/product/marina-2
if you go to the Twitter Card Validator it cannot pull the image although it detects it. But when I deactivate WPSSO and swtich on Yoast CEO it’s own Open Graph/Schema?Twitter metas then sometimes the metas inside the template are processed and sometimes not. G+ and Facebook can retrieve them but Twitter cannot.
here is the Facebook and Google scrapper for this URL with WPSSO
I activated “Add Hidden Debug Messages” and this is what I got:
iption value is empty (skipped) WpssoHead :: get_single_mt : meta property og:image:secure_url is not https (skipped) WpssoHead :: get_single_mt : meta property og:image = “http://strategieart.uk/wp-content/uploads/2016/10/Marina-77×127-Oil-on-Canvas-600×600.jpg” WpssoHead :: get_single_mt : meta property og:image:width = “600” WpssoHead :: get_single_mt : meta property og:image:height = “600” WpssoHead :: get_single_mt : meta property og:image:cropped = “1” WpssoHead :: get_single_mt : meta property og:image:cropped is disabled (skipped) WpssoHead :: get_single_mt : meta property og:image:id = “3044” WpssoHead :: get_single_mt : meta property og:image:id is disabled (skipped) WpssoHead :: get_single_mt : meta name schema:type:id = “product” WpssoHead :: get_single_mt : meta name schema:type:id is disabled (skipped) WpssoHead :: get_single_mt : meta name schema:type:url = “http://schema.org/Product” WpssoHead :: get_single_mt : meta name schema:type:url is disabled (skipped) WpssoHead :: get_single_mt : meta name schema:type:name = “Product” WpssoHead :: get_single_mt : meta name schema:type:name is disabled (skipped) WpssoHead :: get_single_mt : meta name schema:type:context = “http://schema.org” WpssoHead :: get_single_mt : meta name schema:type:context is disabled (skipped) WpssoHead :: get_mt_array : 0 meta name to process WpssoHead :: get_mt_array : Array ( ) WpssoHead :: get_mt_array : 7 meta name to process WpssoHead :: get_mt_array : Array ( [twitter:domain] => strategieart.uk [twitter:site] => @strategieart [twitter:title] => Marina – Strategie Art – Modern & Contemporary, London [twitter:description] => [twitter:creator] => [twitter:card] => summary_large_image [twitter:image] => http://strategieart.uk/wp-content/uploads/2016/10/Marina-77×127-Oil-on-Canvas-600×600.jpg ) WpssoHead :: get_single_mt : meta name twitter:domain = “strategieart.uk” WpssoHead :: get_single_mt : meta name twitter:site = “@StrategieArt” WpssoHead :: get_single_mt : meta name twitter:title = “Marina – Strategie Art – Modern & Contemporary, London” WpssoHead :: get_single_mt : meta name twitter:description = “” WpssoHead :: get_single_mt : meta name twitter:description value is empty (skipped) WpssoHead :: get_single_mt : meta name twitter:creator = “” WpssoHead :: get_single_mt : meta name twitter:creator value is empty (skipped) WpssoHead :: get_single_mt : meta name twitter:card = “summary_large_image” WpssoHead :: get_single_mt : meta name twitter:image = “http://strategieart.uk/wp-content/uploads/2016/10/Marina-77×127-Oil-on-Canvas-600×600.jpg” WpssoHead :: get_mt_array : 3 meta itemprop to process WpssoHead :: get_mt_array : Array ( [url] => http://strategieart.uk/artwork/marina-2/ [name] => Marina – Strategie Art – Modern & Contemporary, London [description] => ) WpssoHead :: get_single_mt : meta itemprop url = “http://strategieart.uk/artwork/marina-2/” WpssoHead :: get_single_mt : meta itemprop name = “Marina – Strategie Art – Modern & Contemporary, London” WpssoHead :: get_single_mt : meta itemprop description = “” WpssoHead :: get_single_mt : meta itemprop description value is empty (skipped) WpssoHead :: get_mt_array : 2 meta name to process WpssoHead :: get_mt_array : Array ( [author] => [p:domain_verify] => 6a81dbcc94002221e2c0f488fbcce275 ) WpssoHead :: get_single_mt : meta name author = “” WpssoHead :: get_single_mt : meta name author value is empty (skipped) WpssoHead :: get_single_mt : meta name p:domain_verify = “6a81dbcc94002221e2c0f488fbcce275″ WpssoSchema :: get_noscript_array : mark (0.176303 secs / 2.25 mb) WpssoGplUtilPost :: must_be_extended : WpssoMeta::get_options must be extended WpssoGplUtilPost :: must_be_extended : WpssoMeta::get_options must be extended WpssoSchema :: get_head_item_type : mark (0.176452 secs / 2.25 mb) WpssoGplUtilPost :: must_be_extended : WpssoMeta::get_options must be extended WpssoSchema :: get_head_item_type : schema type id for post type product is product WpssoSchema :: get_head_item_type : returning schema type value http://schema.org/Product WpssoSchema :: get_noscript_array : getting images for http://schema.org/Product WpssoOpenGraph :: get_all_images : args (num=1, size_name=wpsso-schema, mod=(id=3041, name=post, obj=object WpssoGplUtilPost, use_post=false, is_post=true, is_home=false, is_home_page=false, is_home_index=false, post_type=product, post_status=publish, post_author=1, post_coauthors=(), is_term=false, tax_slug=”, is_user=false), check_dupes=true, md_pre=schema) WpssoUtil :: clear_uniq_urls : cleared uniq url cache for context wpsso-schema WpssoMedia :: get_post_images : args (num=1, size_name=wpsso-schema, post_id=3041, check_dupes=true, md_pre=schema) WpssoGplUtilPost :: not_implemented : WpssoGplUtilPost::get_og_image not implemented in this version WpssoMedia :: get_featured : args (num=1, size_name=wpsso-schema, post_id=3041, check_dupes=true, force_regen=false) WpssoMedia :: get_attachment_image_src : mark (0.178205 secs / 2.25 mb) WpssoMedia :: get_attachment_image_src : args (pid=3044, size_name=wpsso-schema, check_dupes=true, force_regen=false) WpssoMedia :: get_attachment_image_src : full size image 2016/10/Marina-77×127-Oil-on-Canvas.jpg dimensions 1200×717 WpssoMedia :: get_attachment_image_src : image_downsize returned http://strategieart.uk/wp-content/uploads/2016/10/Marina-77×127-Oil-on-Canvas-800×478.jpg (800×478) WpssoMedia :: get_attachment_image_src : applying rewrite_url filter for http://strategieart.uk/wp-content/uploads/2016/10/Marina-77×127-Oil-on-Canvas-800×478.jpg WpssoUtil :: slice_max : max values reached (1 == 1) WpssoUtil :: slice_max : max values reached (1 == 1) WpssoHead :: get_single_mt : meta itemprop image.url = “http://strategieart.uk/wp-content/uploads/2016/10/Marina-77×127-Oil-on-Canvas-800×478.jpg” WpssoHead :: get_single_mt : meta itemprop image.width = “800” WpssoHead :: get_single_mt : meta itemprop image.height = “478” WpssoHead :: get_header_array : mark (0.180849 secs / 2.25 mb) – – – – – – build header array end + (0.035612 secs / 256 kb) WpssoHead :: add_header : end of get_header_html –>
Many thanks for your help
Alex
Thanks, but I would need you to leave the Debug Messages option enabled so I can read the entire debug output. π
Thanks,
js.
It also looks like you’re using a plugin or front-end service to remove HTML comments from your webpages. If you could temporarily disable that, it would allow me to see those debug HTML comments. π
js.
It just dawned on me that you’re using the Free version, and advanced options like title, content, and excerpt filtering are Pro features — not to mention a WooCommerce specific module to include price and variation information in meta tags etc. π
So yes, the fact that shortcodes are not being expanded in your WooCommerce short description (aka the WordPress excerpt) is normal. π
js.
Thank you for your reply. I am thinking about buying the Pro version in this case.
I have a question in that respect. Currently I an using NextScripts for auto posting to different social networks. Somewhere I read that you are planing to add this feature of auto posting too.
I would be interested in combining WPSSO with the auto posting facilities. When are you planning to release this feature?
Many thanks
Alex
Unfortunately, WordPress.org does not allow support or discussion of Pro plugins in its support forums — you can access the Pro support website at http://support.surniaulula.com/support/home. π
Since your question isn’t related to the Pro version, let me answer it here. π WPSSO creates meta tags and Schema markup in webpage head sections for social crawlers — this is independent from any sharing method used, including the use of NextScripts.
WPSSO offers several addons, including one for JSON-LD that I would recommend to anyone using an e-commerce plugin (it provides product information to Google for its search results) — there will eventually be an auto publishing extension, but that’s still in the works.
js.
-
This reply was modified 9 years, 8 months ago by
The topic ‘Shortcodes in the description field’ is closed to new replies.