Setting up the index.php for pages & images
-
I’m going to try to explain this as best I can as I’ve looked for a an hour now on the codex that can help me but I haven’t found it. I find the wordpress codex and docs to be actually quite confusing and I can’t understand anything.
I have a wordpress website (in the very basic and beginning stages) on my local host and I have some widgets and some pages created.
I know how to display posts on my page however I just want to display a page instead. I don’t want to have it display a specific page as sometimes I want my about page as my home page and visa versa. I know I used a loop of some sort that I found a couple months back for a website I did for a friend however that loop is not working anymore.
This is it.
<?php get_template_part( 'loop', 'page' );?>
However I don’t know how to use it anymore? Is anyone familiar with this?
Or is anyone familiar with the proper codex to get my pages to show up in the #content of my wordpress website???
Also a quick problem I am having displaying my images.
<img src="<?php bloginfo('template_directory') ?>images/contacttitle.jpg" alt="">
Is that the proper tag to use to display images in my website? Right now it’s not working.
I appreciate any advice.
- The topic ‘Setting up the index.php for pages & images’ is closed to new replies.