one3rdnerd
Forum Replies Created
-
Same issue here. Commenting so I see when this is resolved.
The version I got to work in my theme was
if ( class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_enabled() ) { }Thanks
Is this incorporated into the plugin now? Not the fullpage.js but the
if ( FLBuilderModel::is_builder_active() ) { // Load stuff! }so I can set a specific theme template on pages where BB is active / in use? both while in edit mode and when looking at the published post?
Also referencing what they were discussing on this closed thread https://wordpress.org/support/topic/is-beaver-builder-in-use?replies=8
Thanks
Forum: Plugins
In reply to: [Genesis Dambuster] Toggle On/OffNo problem, glad to hear you agree, it would make it much quicker for those using the tool differently across many pages and in some case only needing one feature or so.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce 2.6.x conflict – Missing chosen jQuery FilesI had this issue and tracked the plugin down to Disqus. Do you by any chance also have that plugin running? It hijacks the reviews form and prevents it from loading.
This can be fixed by replacing Disqus with the unofficial but considerably improved https://wordpress.org/plugins/disqus-conditional-load alternative.
Forum: Plugins
In reply to: [Better Search Replace] "Max Page Size" inmediatly appearsSame issue here. Thinking WP 4.5 or the plugin has an issue.
Forum: Plugins
In reply to: [Export Featured Images] Featured Images aren't attached to postsI too had a similar issue, they imported both posts, then images but not attached, I may have discovered the difference though as I got it to work second time.
First attempt
1) Imported posts, and selected import images/attachments checkbox
2) Imported image export import file and again selected import images/attachments checkbox.
Second attempt (this one worked after deleting all of the remnants from the first import, so both posts, not just in trash but permanently to make sure the post ID’s are fresh again and also the images imported.
1) Imported posts, and left import images/attachments checkbox unchecked.
2) Imported image export import file and selected import images/attachments checkbox.
That worked, hope maybe that small quirk helps others.
Ah okay, thank you. I was hoping it could be applied to any custom field but understand. I will see if I can find some info on doing this with a custom field.
Appreciate your help exploring.
Exactly! 🙂 Sorry if I didn’t articulate that very well.
So yes
There is the standard button (which I will probably hide later)
and then I have custom fields added using the WP-Types Toolset for
1) USA Affiliate Link
2) UK Affiliate LinkThese are then output as buttons with something like below in the views template editor for my product page
<a class="single_add_to_cart_button button alt" href="[types field="supplier-link-uk" output="raw"][/types]" title="[wpv-post-title]" target="_blank">Buy Now</a>Now WP-Types prefixes your custom fields with wpcf which is why I have wpcf- at the start of my custom field slug.
Views just lets me use a shortcode like [types field=”supplier-link-uk” output=”raw”] to get the data from the specific custom field.
I am doing this because I need multiple buttons, does that help you come up with any alternative approach I could use to hook into the $external_link filter/feature your plugin makes available?
It successfully rewrites my standard woocommerce buy urls with or without the custom code but doesn’t re-write the second button.
I can email you the website its a sensitive one though so want to avoid sharing on here if possible? I have it set at the moment to show the normal buy button as well for testing purposes and to compare.
Yeah WooCommerce Cloak Affiliate Links plugin is still active.
I am wondering if it has anything to do with WPTypes plugin as they use the render types function more often than I see them using the get_post_meta
https://wp-types.com/forums/topic/get-custom-field-value-from-specific-custom-post/
Not sure if that has any impact on me using
/** * Get different URL from database for this $post_id. (url redirect) */ add_filter( 'wccal_filter_url', 'mycode_wccal_filter_url', 20, 2 ); function mycode_wccal_filter_url( $external_link, $post_id ) { $url_field = types_render_field("wpcf-supplier-link-uk", array("raw"=>"true","separator"=>";")); if ( ! empty( $url_field ) ) { $external_link = $url_field; } return $external_link; }Could it be because I am not running wpcf-supplier-link-uk through the standard WooCommerce buy now button? As I am hooking in my own button afterwards in the template but using Views plugin to display with shortcodes.
Thanks for your feedback
1) I mean when I hover the button it shows the real affiliate URL in the status bar not mysite.com/go/878787 like it does for the normal buy now button. Is that right?
Excuse the subject matter http://differentweed.com/product/mini-futurola-rolling-machine/
2) Ah okay I will try this out once I get the first one working right.
Hi Eric,
Thanks for a great response, something like that would be ideal.
1) That code didn’t seem to do it, I updated it to contain one of the two fields in use to test so it was like below
add_filter( 'wccal_filter_url', 'mycode_wccal_filter_url', 20, 2 ); function mycode_wccal_filter_url( $external_link, $post_id ) { $url_field = get_post_meta( $post_id, 'wpcf-supplier-link-uk', true ); if ( ! empty( $url_field ) ) { $external_link = $url_field; } return $external_link; }but the button showing this custom field still shows the original.
2) Would I need an array in there if I have two custom fields to apply this to?
Thanks for your help. I will try and test a bit more with the above to see if I can work it out.
This is when trying to use the Yoast SEO fields. They work fine on normal categories but not on product categories.
I have a feeling autoptimize can cause this but after clearing cache, turning off it still doesn’t work again. The urls are correct, you inspect the page and the images are there but the loading symbol shows infinitely and the thumbnails appear grayed out in firebug. Odd this just started a couple of months back. Most sites I had Foo gallery on started doing this so I ditched it and went back to default WordPress galleries, that said I do have clients that like the plugin.