datafeedr
Forum Replies Created
-
Hi
1. You won’t notice the URL of your button changes. That will appear the same. Something like yoursite.com/redirect/123
But when you click it, it should try to load the URL from the post meta field. Are you sure it’s not redirecting to the URL from the post meta?
2. You could use an array or you could make multiple calls to get_post_meta like this:
/** * Get different URL from database for this $post_id. */ add_filter( 'wccal_filter_url', 'mycode_wccal_filter_url', 20, 2 ); function mycode_wccal_filter_url( $external_link, $post_id ) { $alt_field_1 = get_post_meta( $post_id, 'alt_field_1', true ); if ( ! empty( $alt_field_1 ) ) { return $alt_field_1; } $alt_field_2 = get_post_meta( $post_id, 'alt_field_2', true ); if ( ! empty( $alt_field_2 ) ) { return $alt_field_2; } $alt_field_3 = get_post_meta( $post_id, 'alt_field_3', true ); if ( ! empty( $alt_field_3 ) ) { return $alt_field_3; } return $external_link; }Eric
Hi
Glad you like the plugin!
Yes, you should be able to modify the field used for the URL. There is already a filter in place to make this possible.
The current filter hook looks like this:
$external_link = apply_filters( 'wccal_filter_url', $external_link, $post_id );I haven’t tested it but something like this should work:
/** * Get different URL from database for this $post_id. */ 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, 'other_field', true ); if ( ! empty( $url_field ) ) { $external_link = $url_field; } return $external_link; }Add that to a custom plugin file or your functions.php file and it should work.
You will need to edit the
other_fieldto query the right field but it’s a starting point. Here’s more info on get_post_meta: https://developer.ww.wp.xz.cn/reference/functions/get_post_meta/Hope this helps!
Thanks
EricForum: Plugins
In reply to: [WP REST API (WP API)] How to POST a new image to /wp/v2/mediaThis JavaScript seems to work. I’m not crazy about using
FormDataso there may be a better way:jQuery(document).ready(function ($) { $('#post-submission-form').on('submit', function (e) { e.preventDefault(); var imageData = new FormData(); imageData.append('file', $('input#featured_media')[0].files[0]); $.ajax({ method: "POST", url: POST_SUBMITTER.root + 'wp/v2/media', data: imageData, contentType: false, processData: false, beforeSend: function (xhr) { xhr.setRequestHeader('X-WP-Nonce', POST_SUBMITTER.nonce); }, success: function (response) { console.log(response); }, fail: function (response) { console.log(response); } }); }); });Forum: Plugins
In reply to: [REST API Console] Requests fail due to extra slashI fixed this by opening this file:
~/wp-content/plugins/rest-api-console/templates/views/app.phpAnd changing this:
'rest_url' => rest_url(),To this:
'rest_url' => rtrim( rest_url(), "/" ),Hi nippi9,
“Serviceware” plugins are allowed in the WordPress plugin repository. According to the WordPress Plugin Guidelines:
“Serviceware” plugins are defined as plugins that merely act as an interface to some external third party service (eg. a video hosting site). Serviceware plugins ARE allowed in the repository, as long as the code in the plugin meets all other conditions. These are allowed even for pay services, as long as the service itself is doing something of substance.
Our plugin is 100% compatible with the GNU General Public License.
We are up front about requiring a paid membership to our service on the Installation page as well as on the main plugin page under the Requirements heading.
If you have any questions about our plugins, please don’t hesitate to ask.
Forum: Reviews
In reply to: [Datafeedr WooCommerce Importer] Buy before you try?Hi
Where is your free 180-day trial? Your 100% money-back guarantee if not satisfied?
We have a 30-day 100% money back guaranteel: http://www.datafeedr.com/guarantee/
If at anytime during the first 30 days of having an active Datafeedr subscription you feel that our service and/or software does not meet your expectations, we will issue you a full refund – no questions asked!
Numerous plugins that have many problems or do not update the software
Our plugins are kept up-to-date to match the latest version of WordPress. In fact, at the time of this reply, this plugin (the Datafeedr WooCommerce Importer plugin) is compatible with version 4.4-beta1 of WordPress. It’s more than up-to-date. It’s ready for the next release of WordPress.
Additionally, since the release of this plugin 20 months ago, it’s been updated 30 times. That’s an average of 1.5 updates per month.
If you have any questions, please don’t hesitate to ask.
Thanks,
Eric
Founder – datafeedr.comWhat is the URL of your robots.txt file?
Forum: Plugins
In reply to: [Cloak Affiliate Links for WooCommerce] Change "redirect" in the linkYes, you can do that here: WordPress Admin Area > Settings > Permalinks
Forum: Plugins
In reply to: [Ads by datafeedr.com] Debug shows Datafeedr codeThat’s a good theme. I also use it.
The frames might also be generated by one of the ads you are displaying.
Forum: Plugins
In reply to: [Ads by datafeedr.com] Debug shows Datafeedr codeHi
No, that error will not cause frames to open inside frames. That sounds like your theme, not a plugin.
You could try going here WordPress Admin Area > Settings > Ads and clicking the [Save Changes] button. That might help with the errors.
Eric
Forum: Plugins
In reply to: [Datafeedr WooCommerce Importer] Looks like its emptyHi
We don’t provide support in the ww.wp.xz.cn forums. Please send all support queries to help [at] datafeedr [dot] com.
Thanks
EricForum: Plugins
In reply to: [Cloak Affiliate Links for WooCommerce] Exclude some linksSorry, I was thinking of modifying the URL before the redirect… which wasn’t what you asked.
Unfortunately it’s not possible to do what you want to do via our plugin. You would be better offer modifying your templates to get the functionality you need.
Forum: Plugins
In reply to: [Cloak Affiliate Links for WooCommerce] Exclude some linksHi
Yes, but it will require you to hook into either the ‘wccal_filter_url’ filter or the ‘wccal_clickthrough’ action.
But it really depends on your use case.
Eric
Forum: Plugins
In reply to: [Datafeedr API] Datafeedr API ErrorHi
Please send all support requests to the following email address: help [at] datafeedr [dot] com so that we can best help you.
We do not answer support threads in the WordPress support forums as it’s not private and our support team does not get notified when you post here.
Thanks,
EricForum: Plugins
In reply to: [Datafeedr API] Not all merchants showing up?Hi
Please send all merchant requests (and all support queries) to the following email address: help [at] datafeedr [dot] com so that we can best help you.
We do not answer support threads in the WordPress support forums as it’s not private and our support team does not get notified when you post here.
Thanks,
Eric