d1ch0t
Forum Replies Created
-
Forum: Plugins
In reply to: [Count per Day] Specify post ID for functionsSorry I wasn’t very clear. If I want all Reads or Views of a specific PostID rather than site wide how do I access that?
Since posting OP I’m running my own sql query but just wondered if there was a way to specify postID as there is with show(). Cheers.
Forum: Plugins
In reply to: [WP SEO Structured Data Schema] Image URL is wrong !I made a dirty hack to get around this until the plugins updated for this:
Line 245 of KcSeoSchemaModel.php change this:
if ( ! empty( $metaData['image'] ) ) { $product["image"] = $KcSeoWPSchema->sanitizeOutPut( $metaData['image'] ); }
to this:
if ( ! empty( $metaData['image'] ) ) { $image = wp_get_attachment_image_src( get_post_thumbnail_id( $loop->post->ID ), 'full' ); $product["image"] = $image[0]; }
Worked for me and image URL’s for products now showing in the Schema as needed.
Hope this helps.
Forum: Plugins
In reply to: [WP SEO Structured Data Schema] Image URL is wrong !+1 for this, same issue. Would be great to get a solution as this is a top little plugin.
Hi, thanks for the detailed explanation however it still doesn’t work. I followed your instructions exactly.
Here is the HTML that WC Deposits places into the document:
<div class="wc-deposits-wrapper wc-deposits-optional"> <ul class="wc-deposits-option"> <li> <input type="radio" name="wc_deposit_option" value="yes" id="wc-option-pay-deposit" checked="checked"> <label for="wc-option-pay-deposit">Pay Deposit</label> </li> <li> <input type="radio" name="wc_deposit_option" value="no" id="wc-option-pay-full"> <label for="wc-option-pay-full">Pay in Full</label> </li> </ul> <div class="wc-deposits-payment-description" style="display: block;">Pay a deposit of <span class="wc-deposits-amount"><span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">£</span>10.00</span></span> per item</div> </div>
Any thoughts would be appreciated.
- This reply was modified 8 years, 1 month ago by d1ch0t. Reason: code edit