Post headers on homepage - Link to pages instead?
Hi Is it possibel to change this piece of code in the index.php to point to relevant page slugs instead of post slugs?
Code:
<h2><?php |
What do you mean with "point to". Provide more details, please
|
Hi Flynn.
What I meant is that the piece of code above turns the post header into a link to the post's perm. link. How can I change this to instead build a url for a different page instead of the post's perm. address? eg: Lets say the post has a slug of: "target-1" and I give a page that I create the same slug of: "target-1" can this code be changed somehow to point to the PAGE slug instead of the POST slug? I hope this makes sense. I'm still learning WP and not familiar with all the terms etc. |
In that code, replace
PHP Code:
PHP Code:
|
Woohoo!!! Absolutely awesome Flynn...
Thanks. I now have list of posts that link to static pages as long as I give them the same slugs and ammend the default slug directory. Brilliant!!! My page is so far from a blog its not even funny ;-) |
All times are GMT -6. The time now is 08:06 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.