In a page, I have href that links to another page in my website, using page id: "/?=page_id=xxxxx"
.
The href page itself have url that not contain page Id in the URL for exemple:
pageID of about-page: 4321
the href links to- homepage/?=page_id=4321
the permalink in the about page is: homepage/about
The problem is that when clicking the href it recognize what page is that id and send me to about page but in the url its says: homepage/about/?page_id=4321
.
How can I keep the href like it is and remove page id while it going to href's page
CodePudding user response:
go on wp-dashboard choose the settings < permalinks and replace the page id option to post name Like this
CodePudding user response:
in admin panel
Go:
Settings » Permalinks
and active : post name