OC WordPress Web Designer
Forum Replies Created
-
Forum: Plugins
In reply to: [Gutenberg Blocks with AI by Kadence WP – Page Builder Features] Fatal ErrorFound it. Removed the below and it fixed the issues.
/* Disable Image Side scaling on upload
========================================================= */
add_filter(‘big_image_size_threshold’, 3840);Forum: Plugins
In reply to: [Gutenberg Blocks with AI by Kadence WP – Page Builder Features] Fatal ErrorI’ve debugged that on PHP version 8.2, the error occurs. Can you fix this?
- This reply was modified 9 months, 2 weeks ago by OC WordPress Web Designer.
I think I got it. If theres a better solution let me know.
function extract_url($string) {
$parts = explode(‘,’, $string);
return $parts[0]; // returns the first part, which is the URL
}[extract_url({featured_image})]
To clarify, I’m importing the field into a custom field because I don’t want to import the images. just the url. How do I do that in a normal field?
Forum: Plugins
In reply to: [Import any XML, CSV or Excel File to WordPress] Empty Field Set Value To 0Figured it out.
Price is: [my_output_value({price[1]})]
function my_output_value( $value = null ) {
return ( empty( $value ) ) ? “0” : $value;
}Forum: Plugins
In reply to: [Yoast Duplicate Post] Clone page link on frontendDude, nice! I’ve been looking for this solution everywhere.
I changed it to redirect the the new post page that is created.
/** Performs some actions after copying the post. */ function my_custom_duplicate_post_post_copy($new_post_id) { $status = "publish"; // Update event based on status $post = array( 'ID' => $new_post_id, 'post_status' => $status, ); wp_update_post($post); // Perform some actions after copying the post. wp_safe_redirect(get_permalink($new_post_id), 301); exit(); } add_action('duplicate_post_post_copy', 'my_custom_duplicate_post_post_copy');
I also have a shortcode button on the front end for cloning the current post
function duplicate_post_link_shortcode($atts) { $atts = shortcode_atts(array( 'text' => __('Clone this post', 'your-theme-text-domain') ), $atts); ob_start(); if (function_exists('duplicate_post_clone_post_link')) { echo duplicate_post_clone_post_link($atts['text']); } return ob_get_clean(); } add_shortcode('duplicate_post_link', 'duplicate_post_link_shortcode');
Yes that worked. Thank you.
What is the free version solution?
What is the free version solution then?
Update.
I Figured out how to add all categories. Code below. But how do you add a specific category. For example, I want to only show the categories in “color”?
Function.php
add_filter( 'dgwt/wcas/tnt/indexer/readable/product/data', function ( $data, $product_id, $product ) { $term = $product->getTerms( 'product_cat', 'string' ); if ( ! empty( $term ) ) { $html = '<span class="searchcategories">'; $html .= $term; $html .= '</span>'; $data['meta']['product_cat'] = $html; } return $data; }, 10, 3 );
fibosearch.php added in child theme root (reindex after adding):
add_filter( 'dgwt/wcas/tnt/search_results/suggestion/product', function ( $data, $suggestion ) { if ( ! empty( $suggestion->meta['product_cat'] ) ) { $html = '<div class="searchcategories">'; $html .= $suggestion->meta['product_cat']; $html .= '</div>'; $data['content_after'] = $html; } return $data; }, 10, 2 );
Forum: Plugins
In reply to: [Gravity PDF] Upload Thumbnail Image In PDFOh that makes sense, i didn’t specify that i’m using https://gravitywiz.com/documentation/gravity-forms-media-library/ so the thumbnails are being generated for every image since they are uploaded in the media library.
Is there a hook to call the image source to the thumbnail version to the pdf since it is being generated?
Forum: Plugins
In reply to: [Gravity PDF] Upload Thumbnail Image In PDFOk, thanks.
You refer to a post image (Use the Post ID to get an array of all images attached to the post), but i’m looking for just the normal “File Upload Field”. The uploads are not attached to a post.
Regardless, i’m not experienced enough to create this hook on my own. Do you offer services to provide the function necessary to show thumbnails in the pdf from the basic gravity forms upload field?
Forum: Plugins
In reply to: [Gravity PDF] Upload Thumbnail Image In PDFThe File Upload Field. I want to upload the full size image in gravity form, but show the small thumbnail version in the generated pdf
- This reply was modified 2 years, 5 months ago by OC WordPress Web Designer.
Forum: Plugins
In reply to: [Gravity PDF] Uploaded Image Files Display in PDFWhat did you do to override the field_fileupload display function?
Forum: Plugins
In reply to: [WooCommerce] Tax Calculation (Shipping or Billing) For Certain StateThat thread doesn’t respond the my question. Tax is working correctly for tax based on shipping address. I want to override the shipping address tax calculation regardless of the location IF the billing address is CA.
Do you understand what i’m asking?