patrickbolby
Forum Replies Created
-
Forum: Plugins
In reply to: [Permalink Manager Lite] Remove Parent from URLI’m just thankful for your quick help even though im using lite version. Thanks. Hope my feedback helped you as well
Forum: Plugins
In reply to: [Permalink Manager Lite] Remove Parent from URLWell well. Actually both postname_flat and page_flat worked. (and yes i deleted the snippet from above in functions.php when testing this)
Then documentation is quite misleading. You might as well update this too then
https://snipboard.io/Em1igH.jpgForum: Plugins
In reply to: [Permalink Manager Lite] Remove Parent from URLbut Pagename_flat was taken directly from your documentation i think?
But ok i will try to change that, delete the code snippet, and let you know. Just a momentForum: Plugins
In reply to: [Permalink Manager Lite] Remove Parent from URL“Please keep in mind that all modifications to Permastructures only affect new pages and do not affect old ones.”
Yes, I know that. I’ve been testing this always by creating new pages with parent pages acossiated to it. Saved it. And so far all tests has failed to be without parent pages in the URL. But the code snippet above from GPT got rid of it.
Still wondering; No settings for this ? Or just on my end it bugs?Forum: Plugins
In reply to: [Permalink Manager Lite] Remove Parent from URLI think i was able to get help from GPT
by giving me this code for function ´.phpfunction pm_remove_parent_path( $default_uri, $native_slug, $post, $slug, $native_uri ) { $uri_parts = explode('/', $default_uri); $slug_only = array_pop($uri_parts); return $slug_only; } add_filter( 'permalink_manager_filter_default_post_uri', 'pm_remove_parent_path', 10, 5 );
It worked in the first test i just did.
You don’t just have a setting for this? Or is it just a bug on my end that it keeps adding parent pages.Forum: Plugins
In reply to: [Permalink Manager Lite] Remove Parent from URLForum: Plugins
In reply to: [Permalink Manager Lite] Remove Parent from URLForum: Plugins
In reply to: [Permalink Manager Lite] Remove Parent from URLhi, thanks for the quick reply. Appriciete your help.
“forside” is also a parent page. So thats why i also appears. Then i have parent pages underneath that as well. and i keep getting all the parent pages into the URL.
I tried with both %pagename% and %pagename_flat%
Still getting parents in the url.. why?
https://snipboard.io/GyOgxL.jpg
Do you think something has been hardcoded into my code-editor? Some developers have been working on my page.
also you should maybe consider changing the URL here then. To the new page.
https://snipboard.io/kXYA52.jpg