• Resolved yezzz

    (@yezzz)


    Hi,

    Great plugin! It can do things where other plugins fail.

    One thing though is that it, as i understand, doesn’t use wp rewrite rules. In wordpress when using a taxonomy term as a slug in a post url (ie. /%category%/%postname%/), the url would automatically change in wp this would automatically change if you change the term, but with this plugin you’d have to regenerate the url.

    Anyways, I’m using a feed to automatically create posts and that is where this plugin fails. It probably uses the publish button to do its work? Is there a way to also create rewritten urls for auto-published content? Maybe it can hook into publish post action or something like that?

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter yezzz

    (@yezzz)

    Yes, that worked! Well done!!!

    So, the post terms in the db are read before they are written is basically what you’re saying? Then the pmxi_saved_post (or even WP publish action) callback with a sleep should also work?

    Plugin Author Maciej Bis

    (@mbis)

    Yes, exactly. If you use sleep() inside “pmxi_saved_post” or “wp_insert_post”, you will significantly increase the duration of import process.

    Thread Starter yezzz

    (@yezzz)

    Well I had async processing/multithreading on my mind, but it does not seem to be easy to achieve in php. Then again, wouldn’t a fraction of a second per post be enough?

    Of course your solution is great for autoposts, but I was doing a batched import taking a minute, and impatiently browsing the created offers with their still original urls ??

    • This reply was modified 7 years, 3 months ago by yezzz.
    Plugin Author Maciej Bis

    (@mbis)

    Unfortunately, you are right, especially if you keep in mind that the plugin users run different PHP version on their servers.

    I would try with eg. 200ms, but it all depends on the size and type of your database – maybe you should set the sleep() time to be eg. 150% of average query time.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Create rewrite rule on autopost’ is closed to new replies.