Jason Chong
Forum Replies Created
-
Forum: Plugins
In reply to: [Admin Options Pages] Field name prefixOK thanks for repsonding.
Having a separate issue where it simply will not save any options page I try to create, any idea why?I hope my solution helps someone else!
Forum: Plugins
In reply to: [Comments - wpDiscuz] Rating – Local BusinessOK I have manage to figure out the solution
If your suggested local business conversion code is changed to:add_filter('wpdiscuz_rating_schema', function ( $rating_schema, $key, $postid ){ $sitelogo=get_theme_mod( 'custom_logo' ); $sitelogoSrc = wp_get_attachment_image_src( $sitelogo , 'full' ); $sitelogoSrc_url = $sitelogoSrc[0]; $my_rating_schema = 'LocalBusiness'; $rating_schema = str_replace(__('Article Rating', 'wpdiscuz'), $my_rating_schema . ' Rating', $rating_schema); $rating_schema = str_replace('aggregateRating', "image' itemscope itemtype='https://schema.org/ImageObject'><img style='display:none' data-no-lazy='1' src='" . $sitelogoSrc_url . "' itemprop='url'></div><div itemprop='aggregateRating", $rating_schema); return preg_replace( '|schema\.org\/Product|i', 'schema.org/' . sanitize_text_field($my_rating_schema) , $rating_schema); },11, 3);
then it pulls the site logo as set in customizer and the schema validates correctly. The data-no-lazy is essential as a lazy load plugin rewrites the url and leads to invalidated schema.
This may not be the perfect answer, but it seems to be working for me!- This reply was modified 4 years, 5 months ago by Jason Chong.
- This reply was modified 4 years, 5 months ago by Jason Chong.
- This reply was modified 4 years, 5 months ago by Jason Chong.
- This reply was modified 4 years, 5 months ago by Jason Chong.
Forum: Plugins
In reply to: [Comments - wpDiscuz] Rating – Local BusinessSure. Hopefully this helps you see what I am referring to. I appreciate you taking the time to help me with this
https://www.dantianhealth.com.au/cost-acupuncture/
https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fwww.dantianhealth.com.au%2Fcost-acupuncture%2FForum: Plugins
In reply to: [Comments - wpDiscuz] Rating – Local BusinessAs I explained I already have the local business properties set on the page.
As explained it is the section of local business schema created by this plugin with the ratings which throws an error.
I already have an image set from the local business schema set elsewhere. It does not pick that up in this section however.
Once again I am not asking for wpdiscuz to write my whole local business schema. I am only trying to find a solution for the single attribute of image in the section created by your plugin.
Wpdiscuz creates the rating section of schema. In doing so that section of code requires an image. It does not provide that.
Your responses seem to be directed at a request which I am NOT makingForum: Plugins
In reply to: [Comments - wpDiscuz] Rating – Local BusinessHi
I’m not asking for all the tools. I’m merely trying to find a way for the conversion to local business schema that you offer to be valid.
As stated I have located business schema configured elsewhere, this section from your plugin however registers the error. I have no idea what you are referring to by telling me to manually configure my advanced options
All it needs to do is set the image to be the site logo, that wouldn’t require any user input as it could be set in the php code. Is there anyway to pass it into the modification code you provide.
It just needs something to validate that field which throws an error as opposed to a warning which you see in most of the other schema transitions you offer.Forum: Plugins
In reply to: [Comments - wpDiscuz] Rating – Local BusinessIt throws an error.
Here is a screenshot
You will observe that even with LocalBusiness schema being set elsewhere and being picked up correctly without errors, the section for LB Schema from WPDiscuz is throwing an error due to no image being attached.
Is there a way to modify the php snippet to set the image attribute for Local Business?- This reply was modified 4 years, 5 months ago by Jason Chong.
- This reply was modified 4 years, 5 months ago by Jason Chong.
Hi,
Thank you. I found the issue is with the use of the 7G Firewall.
I discovered that commenting out line 26 resolved the issue
“RewriteCond %{QUERY_STRING} (s)?(ftp|http|inurl|php)(s)?(:(/|%2f|%u2215)(/|%2f|%u2215)) [NC,OR]”
The firewall author states it is difficult to write an exclusion in the firewall for this referral as the URL it calls is complicated and most likely dynamic based upon the account being used.
But at least I found the solution!Forum: Plugins
In reply to: [Schema & Structured Data for WP & AMP] wp_postmetaWhen I go into the database through PHPMYAdmin and then open the postmeta table I suddenly have around 10000 new lines of entry after activating your plugin. When I go into the details of it I find around 150 new entries per post. Each entry appears to be a holding for a different type of schema with ‘a:0:{}’ assigned as the value. So you are correct that data has not been added as there is nothing in there, however the entry has been created in the database table causing bloat. These entries should not be created as they are redundant. Eg if I am only using service schema on a post, I shouldnt see the meta fields created for every other type of schema. But instead I see an entry for music_playlist_track, tv_series_actor, faq_question, perfomer, how_to_step and many many others. I don’t understand why these fields are being created
Have a look at a test site and see if you see the same.Currently I have no custom fields and have the following font awesome files being loaded
fa-regular-400.woff2 13.3 KB
fa-solid-900.woff2 77.6 KB
fa.min.css?ver=7.0.3 2.2 KBSo I correct myself that I see 2 font weights plus the minified CSS. 93KB in total
I’m sure SVG options would reduce this dramatically!
I very much hope you will take this feedback onboard to improve your great plugin.Very impressed with the plugin.
However I do very much agree with the presented issue of unnecessary excessive page weight from font awesome. Especially as activating it results in 3 font weights being added!
If you remain attached to fontawesome for the plugin, perhaps you could offer svg icons as an option for this others. This is becoming standard amongst speed/ weight conscious plugins.- This reply was modified 4 years, 5 months ago by Jason Chong.
Hi thanks. I have gotten it working. Had to change the SMTP settings but it is happy now.
I have resolved the issue by deleting the FAQ accordion and rebuilding it using a different style
Hi,
Yes caches have been cleared. I have tried disabling other plugins and still get the same result. I am using Generate Press theme and the Accordion sits within a container created by GenerateBlocks (have tested it outside of this container with the same result). I have RankMath installed which generates other schema on the site
If you look at the page I attached you will see 7 questions in the FAQ. If you run it through the structured data testing tool you will see only 2 arise. This is confirmed by viewing Page Source so it is not a testing tool issue.
Not sure where to from here- This reply was modified 4 years, 5 months ago by Jason Chong.
Hi
trying to configure other smtp
nothing seen in dashboard or in error log