Title: Different Permalink URL when manually generating feeds
Last modified: March 14, 2017

---

# Different Permalink URL when manually generating feeds

 *  Resolved [davidtrebacz](https://wordpress.org/support/users/davidtrebacz/)
 * (@davidtrebacz)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/)
 * Great plugin! I have been using it for about 2 months and find it very full featured
   and capable of a lot.
 * I was appending the product URL’s with Google Analytics campaign tags using the
   plugin. I wanted to get get better tracking out of my PLA feeds in Google analytics.
   I set the link attribute to “add suffix” to the Permalink for the “link” XML 
   attribute in the feed.
 * When I use the “Save and generate” function in the edit feed area the proper 
   permalink is used and the string I append needs a question mark: [https://www.glasshousestore.com/product/pro-drilling-guide-and-drilling-platform/](https://www.glasshousestore.com/product/pro-drilling-guide-and-drilling-platform/)**?**
   utm_medium=cpc&utm_source=googlepla&utm_campaign=goolge_pla
 * When the feed is automatically updated the URL is not the standard permalink 
   for my site. In this case the campaign parameters need to be added with an &:
   
   [https://www.glasshousestore.com/?product=pro-drilling-guide-and-drilling-platform](https://www.glasshousestore.com/?product=pro-drilling-guide-and-drilling-platform)**&**
   utm_medium=cpc&utm_source=googlepla&utm_campaign=goolge_pla
 * My preference is that both the manually and automatically generated feed files
   use the same permalink structure, so that my test and automatically generated
   files are the same…
 * Here is the feed. Depending on when you pull it it will be the manual or automatic
   version:
    [](https://www.glasshousestore.com/wp-content/uploads/wppfm-feeds/DiamondDrills.xml)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/page/2/?output_format=md)

 *  Thread Starter [davidtrebacz](https://wordpress.org/support/users/davidtrebacz/)
 * (@davidtrebacz)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-8912991)
 * Here is the example feed URL:
    [https://www.glasshousestore.com/wp-content/uploads/wppfm-feeds/DiamondDrills.xml](https://www.glasshousestore.com/wp-content/uploads/wppfm-feeds/DiamondDrills.xml)
 *  Plugin Contributor [Michel Jongbloed](https://wordpress.org/support/users/michel-jongbloed/)
 * (@michel-jongbloed)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-8913319)
 * Hello Davidtrebaz,
 * This is a known issue with our plugin. It has something to do with the fact that
   when executing a function with cron, it uses other presets for some wordpress
   functions than when you execute this function from a loaded plugin.
 * It is on our list of issues, but until now we’ve not been able to find a solution
   for it.
 * We will keep you up-to-date on our progress, but it can take some time.
 * Best regards,
    Michel
 *  Thread Starter [davidtrebacz](https://wordpress.org/support/users/davidtrebacz/)
 * (@davidtrebacz)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-8913764)
 * Great. Thanks for the quick reply. I really like the non-cron version of the 
   links much better. They are consistent with the URL structure on the public site
   and our canonical URL’s.
 * For now I have it set up to “work”. I was a little surprised when I saw my PLA
   links dropping in Google Merchant center (due to 404 errors), but it was an easy
   fix. Google will hopefully catch the updates tomorrow…
 *  Plugin Contributor [Michel Jongbloed](https://wordpress.org/support/users/michel-jongbloed/)
 * (@michel-jongbloed)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-8913978)
 * Yes, that’s what we are aiming for as well.
 * A cron always starts clean, without any thing loaded or initialized and I suspect
   that a specific WooCommerce code needs to be loaded to get the correct permalink
   response. But I’m having a hard time figuring out what it is that’s not being
   loaded.
 * Anyway it’s on our list and I will keep you informed when I can make some progress
   on it.
 *  Plugin Contributor [Michel Jongbloed](https://wordpress.org/support/users/michel-jongbloed/)
 * (@michel-jongbloed)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-8957619)
 * Hello Davidtrebaz,
 * Could you do me a favor and send me a screenshot of your WordPress Settings->
   Permalinks page? I want to replicate your settings in order to do some more testing.
    -  This reply was modified 9 years, 2 months ago by [Michel Jongbloed](https://wordpress.org/support/users/michel-jongbloed/).
 *  Thread Starter [davidtrebacz](https://wordpress.org/support/users/davidtrebacz/)
 * (@davidtrebacz)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-8958000)
 * Here are the current settings 🙂
 * ![WooCommerce Permalinks Settings](https://i0.wp.com/pasteboard.co/O6GbOoa8y.
   png)
 * [Link to image](http://pasteboard.co/O6GbOoa8y.png)
    -  This reply was modified 9 years, 2 months ago by [davidtrebacz](https://wordpress.org/support/users/davidtrebacz/).
    -  This reply was modified 9 years, 2 months ago by [davidtrebacz](https://wordpress.org/support/users/davidtrebacz/).
 *  Plugin Contributor [Michel Jongbloed](https://wordpress.org/support/users/michel-jongbloed/)
 * (@michel-jongbloed)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-8983575)
 * Hi, could you please try the following:
 * 1) Open the ‘wp-content/plugins/wp-product-feed-manager/includes/application’
   folder and make a backup of the wppfm-cron.php file
    2) Download the following
   file [http://dropcanvas.com/mw1r8](http://dropcanvas.com/mw1r8) 3) Copy the content
   of the downloaded file in the folder mentioned in 1). You can override the original
   file 4) Refresh the plugins page to make sure the plugin is still working fine.
 * If you encounter issues, just restore the backup file
 * Then please check if this solved the issue by waiting for an automatic refresh.
   Let me know if it solved the issue.
 *  Plugin Contributor [Michel Jongbloed](https://wordpress.org/support/users/michel-jongbloed/)
 * (@michel-jongbloed)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-9033258)
 * Hello Davidtrebaz,
 * Could you confirm that you are using version 1.4.3 of the plugin?
 * Best regards,
    Michel
 *  Thread Starter [davidtrebacz](https://wordpress.org/support/users/davidtrebacz/)
 * (@davidtrebacz)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-9037784)
 * Yes version 1.4.3. I’ll try the supplied patch today and let you know…
 *  Thread Starter [davidtrebacz](https://wordpress.org/support/users/davidtrebacz/)
 * (@davidtrebacz)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-9037881)
 * I added the supplied patch to the production site and have scheduled a cron update
   of one feed in the next hour.
 * I also noticed that the feed manager screen uses UTC time (vs local time in WordPress).
   I assume that also applies to the feed generation, so I set the schedule using
   UTC time. I would suggest to have all the settings in local time in the plugin.
 *  Thread Starter [davidtrebacz](https://wordpress.org/support/users/davidtrebacz/)
 * (@davidtrebacz)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-9041404)
 * I swapped out the wppfm-cron.php file with your changes. I let the automatic 
   jobs run overnight (they run fine). Unfortunately the URLS’s are still not properly
   permalinked when created using the cron function.
 * Here is another feed file as an example:
    [https://www.glasshousestore.com/wp-content/uploads/wppfm-feeds/GlassBevels.xml](https://www.glasshousestore.com/wp-content/uploads/wppfm-feeds/GlassBevels.xml)
 * Cron generated links look like this:
    [https://www.glasshousestore.com/?product=quilt-star-bevel-cluster&utm_medium=cpc&utm_source=googlepla&utm_campaign=goolge_pla](https://www.glasshousestore.com/?product=quilt-star-bevel-cluster&utm_medium=cpc&utm_source=googlepla&utm_campaign=goolge_pla)
 * Instead of the canonical version:
    [https://www.glasshousestore.com/product/quilt-star-bevel-cluster/?utm_medium=cpc&utm_source=googlepla&utm_campaign=goolge_pla](https://www.glasshousestore.com/product/quilt-star-bevel-cluster/?utm_medium=cpc&utm_source=googlepla&utm_campaign=goolge_pla)
 *  Plugin Contributor [Michel Jongbloed](https://wordpress.org/support/users/michel-jongbloed/)
 * (@michel-jongbloed)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-9042443)
 * Yes, I know what is going wrong but I just do not understand why. In a cron triggered
   update the standard permalink function is not picking up the “pretty permalink”
   settings of WordPress.
 * I have a new file that would generate a debug logging, but it seems my dropcanvas(
   file sharing) account is down. I will send you the file tomorrow as soon as my
   account has been reset.
 * As for the time of the feed update, I currently use the standard PHP time command
   that uses the server time. As far as I know this is the only time I can work 
   with, but I will investigate a bit further on this to see what I can do.
 *  Thread Starter [davidtrebacz](https://wordpress.org/support/users/davidtrebacz/)
 * (@davidtrebacz)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-9042900)
 * Thanks. Look forward to the debugging file.
 * I did change the php timezone on the shared server that I use, but GUI is still
   UTC. It looks like the localized time function for WordPress is: [https://codex.wordpress.org/Function_Reference/current_time](https://codex.wordpress.org/Function_Reference/current_time)
 * It would be helpful if the GUI worked on blog time (localized time) vs having
   to adjust… 🙂 Right now what seems to be happening is I schedule the updates 
   to run at midnight, 00 UTC in WordPress and they actually run at ~5pm (or 17)
   Pacific time.
 *  Plugin Contributor [Michel Jongbloed](https://wordpress.org/support/users/michel-jongbloed/)
 * (@michel-jongbloed)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-9046077)
 * Thanks for the function reference. I will have a look at it. I might be able 
   to integrate it in the next update we expect to be ready end of this month.
 * Here’s the debug file: [http://dropcanvas.com/migbl](http://dropcanvas.com/migbl)
 * Please perform the following actions:
 * 1) Open the ‘wp-content/plugins/wp-product-feed-manager/includes/application’
   folder and make a backup of the class-feed-master.php file
    2) Download the debug
   file 3) Copy the content of the downloaded file in the folder mentioned in 1).
   You can override the original file 4) Refresh the plugins page 5) Generate a 
   manual feed update 6) Wait for at least one automatic update of the feed
 * You should have a file called “permalink-debug.log” in your ‘wp-content/plugins/
   wp-product-feed-manager’ folder. Please mail this file to michel @ wpmarketingrobot.
   com.
 * If you encounter issues, just restore the backup file
 *  Plugin Contributor [Michel Jongbloed](https://wordpress.org/support/users/michel-jongbloed/)
 * (@michel-jongbloed)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/#post-9066626)
 * Issue solved through e-mails.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/page/2/?output_format=md)

The topic ‘Different Permalink URL when manually generating feeds’ is closed to 
new replies.

 * ![](https://ps.w.org/wp-product-feed-manager/assets/icon-256x256.png?rev=3208464)
 * [WPMR Google Feed Manager for WooCommerce – Sell on Google Merchant Center & Shopping](https://wordpress.org/plugins/wp-product-feed-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-product-feed-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-product-feed-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-product-feed-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-product-feed-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-product-feed-manager/reviews/)

 * 16 replies
 * 2 participants
 * Last reply from: [davidtrebacz](https://wordpress.org/support/users/davidtrebacz/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/different-permalink-url-when-manually-generating-feeds/page/2/#post-9086845)
 * Status: resolved