Pablostevens71
Forum Replies Created
-
Forum: Plugins
In reply to: [Secure Custom Fields] Issue with ACF Shortcode Not Working+1 6.3.8 and shortcodes are not working for me in wp bakery. However, the acf widget is working.
Forum: Themes and Templates
In reply to: [Twenty Twenty-Two] Custom Post TemplatesThink I just solved my own problem. If you add single-jobs.html to the templates folder and cut and paste the block HTML into it, it does actually work. However in Twenty Twenty Two in the post type editor in the dropdown it still says “default”, there is an option for the Jobs template too. I guess “default” is the one I specified by creating the named post template file. Long story short, it works, just the UI is a bit confusing.
Forum: Plugins
In reply to: [Custom Content Shortcode] Orderby an ACF Date Field doesn’t workI got this to work. Thank you……
acf_date=event_start_date orderby=event_start_date order=DESC
event_start_date is my ACF, I also had to have it output Ymd format ie: 20210123
Forum: Plugins
In reply to: [Custom Content Shortcode] Count Loop with Repeater FieldI’m almost there! I found the math functions, it is working but for some reason it returns “0” in my <label for=…> html? Is it a format thing?
<div class='centerplease'> FAQ accordion </div> <br> <div class="faq-content"> [repeater faqs] <div> <input type="checkbox" id="question[calc]total[/calc]" name="q" class="questions"> <label for="question[calc]total[/calc]" class="question"> [field "question"] </label> <div class="answers"> [field "answer"] [calc]total=total+1[/calc] </div> </div> [/repeater] </div>
Basically each question and answer pair, I need to have a unique ID to match the checkbox and the label.
- This reply was modified 4 years, 2 months ago by Pablostevens71.
- This reply was modified 4 years, 2 months ago by Pablostevens71.
Forum: Plugins
In reply to: [Custom Content Shortcode] ACF Link Field Page TitleThanks that did the trick.
Forum: Plugins
In reply to: [Table Field Add-on for SCF and ACF] Custom CSSHey I tried your latest shortcode with the CSS table class in it and it doesn’t work. It just inserts “” for the class.
The problem is here:
$return .= '<table class="' . $table['table-class'] . '" border="0">';
I changed it to:
$return .= '<table class="' . $a['table-class'] . '" border="0">';
and it works. I think you missed “table-class” in the array, but adding it there didn’t seem to work, but this does.
Forum: Plugins
In reply to: [Custom Content Shortcode] Shortcodes not working insideI had the same problem with URL’s I needed to capture a link for an external affiliate site with ACF but I just could not get it to work on the front end when wrapped in
<a href>
so I modified @taylorswendsen suggestion above. I created a [acf_link] shortcode like this:add_shortcode("acf_link", "link_shortcode"); function link_shortcode($atts, $content=null) { return '<a href="'.$content.'" class="button">Shop Now</a>'; }
then used it like this:
[acf_link][field product1_link][/acf_link]
- This reply was modified 6 years, 1 month ago by Pablostevens71.
Forum: Plugins
In reply to: [WooCommerce] Dependent VariationsSOLVED!!!!
Found the solution in another forum. Appearantly, WC has a default max variation for Ajax that is set at 30 variations. After that, I guess i just doesn’t function like it does when you have less than 30.
Here’a snippet that increases the number of ajax variations allowed to 1111. It works great!
/* Increase Woocommerce Variation Threshold */ function wc_ajax_variation_threshold_modify( $threshold, $product ){ $threshold = '1111'; return $threshold; } add_filter( 'woocommerce_ajax_variation_threshold','wc_ajax_variation_threshold_modify', 10, 2 );
Forum: Plugins
In reply to: [WooCommerce] Dependent VariationsHmmm this is still a problem. It worked with just a few wood types and related variations, but when I added all 48 variations of wood and color, it no longer worked!!! I’ve double checked all my variations and they are all set up correctly. Can’t figure this one out.
After I entered all the woods/color combos, it lets me pick combinations that are not available and gives me the message “Sorry, no products matched your selection. Please choose a different combination.”
Must be a bug.
Forum: Plugins
In reply to: [WooCommerce] Dependent VariationsYes thank you. When I simplified it down to just a couple of woods and a couple of colours it worked. My initial product had hundreds of variations. Must have been a mistake in one of the variation combinations.
As an update I used “product add ons” plugin to deal with the colour. I can set the add on globally based on the wood color and save hours of data entry.
Forum: Plugins
In reply to: [WooCommerce] Dependent VariationsHey @bigmoxy, yes I created the variations. A total of 6 in this case. The problem is, after “wood type” is selected, the available options are all colors and not just the 3 that apply to the wood type.
So if I choose “cherry wood” I don’t want colors D, E, F to show as they are only available for Walnut Wood.
Forum: Fixing WordPress
In reply to: Fatal error: Call to a member function do_all_hook() on array inI can confirm I had the same issue and renamed the object-cache.php file and voila! Everything works.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Categories Are Not ShowingCouple of things you can try:
1. resave permalinks
2. In woocommerce go to system status, tools, clear transients, clear expired transients, then recount terms.Forum: Plugins
In reply to: [WooCommerce] attributes not savingHow many attributes do you have? Sometimes if you have lots (like 30) it won’t save. You have to adjust a server setting to allow more.
Forum: Plugins
In reply to: [WooCommerce] Error establishing a Database ConnectionJust so I understand, when you deactivate woocommerce, you can login to wordpress and it works no problem, but when you activate woocommerce, database connection error?
If this is correct, the only conclusion I can come to is that your database is corrupt. Log into MyPHP admin and repair the tables in your database and see if that works.
If you can’t get into wordpress at all, then it would lead me to believe a problem with your wp-config file and the database credentials.
I did once have a problem like this I couldn’t explain, so I added another user to the database with full credentials and then changed up the wp-config to login to the database with the new users credentials and then it magically worked.
Please clarify the issue.