WADSpot
Forum Replies Created
-
Forum: Plugins
In reply to: [Collapsed Archives] Used for News CPTI forgot to add these in above post.
In functions.php
add_filter('ca_set_year_args', 'news_set_year_args', 10, 2); function news_set_year_args($args, $result){ $args = array('post_type' => 'news', 'year' => $result->year); return $args; }
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] ACF code inside another shortcode?hi, when you say “theme” im assuming you’re referring to theme “template” (eg page.php).
try putting it inside your template file this way:
echo do_shortcode('[coupon title="'.get_the_title().'" url="'. the_field('coupon_destination_url').'" code="'.the_field('coupon_code').'" image="https://123.com/123.jpg" button="some text" description="'.the_field('coupon_description').'"]');
Hi,
I had a problem close to this, and was able to somehow find a way to upload, crop, and save an image. I just thought that below steps might also help you guys.
In case you haven’t found a solution yet, you can try to temporarily turn OFF the “Remove Files From Server” option first before you upload, crop, and save your image.
You can find this option under Network Admin > Dashboard > AWS > S3 and CloudFront page > Advanced Options section. Once set to OFF, try uploading your file again.
In my case, after I uploaded, cropped, and saved an image file. I saw two copies of the image file in Media. So I had to delete one that is NOT prefixed with the word “cropped-“. After that, I turned ON the above option again.
Regards,
SpotForum: Plugins
In reply to: [Custom Post Type Permalinks] 3rd level custom taxonomy not included in URLtry checking your post type permalink settings, and make sure that you included the taxonomy name as part of your permalink string.
for example, your taxonomy name is “my_custom_taxonomy”, your permalink should be: /%my_custom_taxonomy%/%postname%/
Forum: Plugins
In reply to: [Custom Post Type Permalinks] 3rd level custom taxonomy not included in URLgreat job!
i can see the third-level category now.
again, thank you.
Forum: Plugins
In reply to: [Custom Post Type Permalinks] 3rd level custom taxonomy not included in URLi tried to go through your code and have a suggestion if you can possibly add a filter in Permalink.php like the following in create_taxonomy_replace_tag()? (this is between line 175 and 178)
$replace = apply_filters('cptp_create_taxonomy_replace',$replace,$taxonomies,$post_id , $permalink); return array("search" => $search, "replace" => $replace );
so in functions.php of a theme, the following can be added to customize the processing of $replace:
function spot_cptp_create_taxonomy_replace($replace,$taxonomies,$post_id , $permalink){ foreach ( $taxonomies as $taxonomy => $objects ) { $term = null; if ( strpos($permalink, "%$taxonomy%") !== false ) { $terms = wp_get_post_terms( $post_id, $taxonomy, array('orderby' => 'term_id')); if ( $terms and count($terms) > 1 ) { if(reset($terms)->parent == 0){ $keys = array_keys($terms); $term = $terms[$keys[1]]->slug; if ( $terms[$keys[0]]->term_id == $terms[$keys[1]]->parent ) { $term = CPTP_Util::get_taxonomy_parents( $terms[$keys[1]]->parent,$taxonomy, false, '/', true ) . $term; } if(count($terms) > 2){ $term = $terms[$keys[2]]->slug; if ( $terms[$keys[1]]->term_id == $terms[$keys[2]]->parent ) { $term = CPTP_Util::get_taxonomy_parents( $terms[$keys[2]]->parent,$taxonomy, false, '/', true ) . $term; } } }else{ $keys = array_keys($terms); $term = $terms[$keys[0]]->slug; if ( $terms[$keys[1]]->term_id == $terms[$keys[0]]->parent ) { $term = CPTP_Util::get_taxonomy_parents( $terms[$keys[0]]->parent,$taxonomy, false, '/', true ) . $term; } } }else if( $terms ){ $term_obj = array_shift($terms); $term = $term_obj->slug; if(isset($term_obj->parent) and $term_obj->parent != 0) { $term = CPTP_Util::get_taxonomy_parents( $term_obj->parent,$taxonomy, false, '/', true ) . $term; } } if( isset($term) ) { $replace = array($term); } } } return $replace; } add_filter('cptp_create_taxonomy_replace','spot_cptp_create_taxonomy_replace',10,4);
i have a similar issue with you guys. using this plugin, i wanted to disable the shipping calculator everytime i change values of shipping city, shipping state, & shipping postal code fields.
to do it i added this code in my theme functions.php:
/** * my_wpsc_needs_shipping_recalc() * * disable shipping_recalc value returned by needs_shipping_recalc() for fixedrate shipping method. * * @param boolean $needs_shipping_recalc * @param obj $wpsc_cart * @return boolean */ function my_wpsc_needs_shipping_recalc($needs_shipping_recalc, $wpsc_cart) { if($wpsc_cart->shipping_method == 'fixedrate') { $needs_shipping_recalc = false; } return $needs_shipping_recalc; } add_filter('wpsc_needs_shipping_recalc','my_wpsc_needs_shipping_recalc',10,2);
hope this can help.
Forum: Plugins
In reply to: [WP eCommerce] Where did presentation.php go?adding an empty presentation.php seems to address the issue. now the presentation tab is showing.
woops sorry a license i mean… not a developer license.
Forum: Plugins
In reply to: [WP Super Cache] Intermittenet White Screens with WP 3.8.1Can you guys try to see if these steps will work in your sites.
Replace the content of your wp-content/cache/.htaccess file with the ff:
# BEGIN supercache <IfModule mod_mime> <FilesMatch "\.html\.gz$"> ForceType text/html FileETag None </FilesMatch> AddEncoding gzip .gz AddType text/html .gz </IfModule> <IfModule mod_deflate> SetEnvIfNoCase Request_URI \.gz$ no-gzip </IfModule> <IfModule mod_headers> Header set Cache-Control 'max-age=3, must-revalidate' </IfModule> <IfModule mod_expires> ExpiresActive On ExpiresByType text/html A3 </IfModule> # END supercache
Then delete cached pages.
See if the white screen will happen.
Forum: Plugins
In reply to: [WP Super Cache] WP Super Cache not support in windowsHi,
I just ignored that message. There shouldn’t be any problem in windows, I believe.
Forum: Plugins
In reply to: [WP Super Cache] Formatting broken on some posts with no excerptsHi,
Try looking at HTML source of https://craftbits.com/project/recycled-sweater-headband/, you should see that there are HTML elements in head tags that should be in body. starting at line 36.Looks like you have a code in your functions.php that is echoing these lines instead of returning it.
Hi,
Im experiencing this issue as well. I’m using WP 3.6 and NextGen 2.0, and my site is on Linux. After creating a gallery and uploaded images, or just added images to an existing gallery. The images are not displayed.
My work around is to manually chmod 755 the gallery folder.
Hope to have this issue addressed, this is a great plugin.
Thanks
SpotForum: Plugins
In reply to: [SMTP] From: Email not showingJust want to share my work around for this, in line 238 and line 241 of smtp.php. I revised the codes into this:
// Set From value $phpmailer->From = empty($phpmailer->From) ? $admin_info->user_email : $phpmailer->From; // Set FromName value $phpmailer->FromName = empty($phpmailer->FromName) ? $admin_info->display_name : $phpmailer->FromName;
I can use this while waiting for the author’s reply or update.
Forum: Plugins
In reply to: [SMTP] From: Email not showingHi ,
Thanks for this simple easy to use plugin. Almost same as karlruegg concern. Using Contact Form 7, and SMTP (this plugin) the value of From field that I specify in the form (CF7) does not reflect in the “From” of the email that I’m receiving. Instead it is using the email in user_id = 1 as the value.
Any way how to fix this? or I may be missing something? Please advice. Thanks.