Hi @menhadi,
Could you let me know how exactly you import the listings?
Best regards,
Maciej
Hi,
I imported listing from csv file using Wpall import plugin.
Regards
Hasan
Hi @menhadi,
unfortunately I am not able to reproduce this issue with newest version of MyListing theme and WP All Import plugins.
Do you possibly have any staging website where I can debug the issue with your configuration?
Best regards,
Maciej
Hi,
How to share login credential here?
Regards
Hasan
Hi Hasan,
please send them to contact /at/ maciejbis.net
Best regards,
Maciej
@menhadi Did you find a solution for getting listing type in the permastructure?
I’m having the same problem. The issue occurred since MyListing v2.6.
The permastructure %listing_type% is no longer recognized.
Best Regards
Hi @diyiwi1330,
The issue will be fixed in the next version of Permalink Manager. Temporarily please use the below snippet:
https://pastebin.com/gBfPa6vx
Please paste it to functions.php in theme directory.
I apologize for the inconvenience!
Best regards,
Maciej
@mbis Thank you for the prompt reply and support.
Much appreciated.
@mbis The issue with Listing Types for MyListing did not get fixed in the recent update. I still require the functions.php fix.
Was this correction applied to the PML v2.2.9.4 update?
Thanks again.
Hi @diyiwi1330,
the snippet was added to the plugin codebase:
https://plugins.trac.wordpress.org/browser/permalink-manager/trunk/includes/core/permalink-manager-third-parties.php#L851
Actually, the only difference is the hook priority set here (Line #103):
https://plugins.trac.wordpress.org/browser/permalink-manager/trunk/includes/core/permalink-manager-third-parties.php#L103
Could you try to change it from:
add_filter('permalink_manager_filter_default_post_uri', array($this, 'ml_listing_custom_fields'), 5, 5 );
to?
add_filter('permalink_manager_filter_default_post_uri', array($this, 'ml_listing_custom_fields'), 4, 5 );
Best regards,
Maciej
Hi @mbis,
Unfortunately the hook priority change did not work.
I added the code to line 103 of the PML plugin and removed what was in functions.php.
I also tried deactivating all other plugins and activating the parent theme (child off).
The permastructure I’m using is: %listing_type%/%region%.
This works fine when the functions.php code is added.
If you want, I can open another thread. (Sorry for the spam @menhadi)
From your testing, is LT being picked up in the current version? Ie Is the problem on my end?
Thanks again.
Hi @diyiwi1330,
Could you by any chance provide me with admin access to your website (or development/staging one, if you have any)? My email address is contact /at/ maciejbis.net.
Best Regards,
Maciej
Details sent to contact /at/ maciejbis.net
Thanks