Well, my Portfolio section of the site has a link like this http://mydomain.com/?page_id=9
Is it possible to change it to http://mydomain.com/portfolio.php?
Thank you, in advance. :)
Well, my Portfolio section of the site has a link like this http://mydomain.com/?page_id=9
Is it possible to change it to http://mydomain.com/portfolio.php?
Thank you, in advance. :)
No. I mean if the Page's title is "Portfolio" and you are using permalinks it will be possible to have something like
example.com/portfolio
So how would I do that again? I think I should try. =/
http://codex.wordpress.org/Using_Permalinks
Under options/permalinks
Well, this is what I have enabled. :S
But isn't that only for posts and comments?
/%year%/%monthnum%/%day%/%postname%/
If permalinks are enabled they will work for Pages, too, and the slug created from the title (or modified by you) will be used in the link.
However, read the Note from here:
http://codex.wordpress.org/Pages#Creating_Pages
I have enabled permalinks (they won't work for pages) and the slug. For example, Portfolio page's slug is portfolio. Do I have to change it to portfolio.php?
If they don't work for Pages, then your .htaccess file is not writable. Did you follow the link I've posted above?
Foe the second question I answered here.
I did follow the link, don't really get it though. So how do you make your .htaccess file writable? Is it something to do with chmodd?
Yes. And you can read a lot about it on the Codex, just have to search.
So the .htaccess file is writable now. I updated the permalinks again. What now?
Now be happy :)
(Go to your horizontal nav code and change the links from "page_id=XX" to the "slug" of the Pages.)
Now every page is the "Contact" page. LoL. :P
Where did I mess up?
You have a reading problem, young man :)
NO PAGE ID! just the slug...
So it isn't "page_id=portfolio" - just "portfolio"
Oopss. Very sorry. My bad.
Works now. Thanks a bunch!
This topic has been closed to new replies.