• Resolved jlau

    (@jlau)


    This is very basic question, yet I’m having the hardest time trying to figure out how to pull this off.

    I have a side navigation set to a separate template php file called “sidenav.php” and it is this file that is pulling ONLY the sub navigation for the interior pages on my site. This side navgation is prevalent on every page except for the contact and blog section. There is a spot above the nav for ONE image or THUMBNAIL.

    Here are my questions for this dilemma:

    1. How do I go about doing this?
    2. How do I apply the loop to this?
    3. What is the <?php something_image(); ?> or “tag” should I be using?
    4. How do I embed this “tag”. Where should it go?
    5. How should I set up my file structure to have the tags/functions pull images from my images folder?
    6. How should I set up my images folder or how should I name the files?

    If I missed out on anything, please let me know. This is basic stuff I know, but I’ve spend hours already just reading WordPress documentations and it’s not making any sense to me.

    Thanks for reading this post. Hope to hear from you soon!

Viewing 16 replies (of 16 total)
  • Thread Starter jlau

    (@jlau)

    Hello again!

    I have an <img src> link attached to the navigation php file.

    <img src="<?php if ( has_post_thumbnail()) : ?>
    	   <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
    	   <?php the_post_thumbnail(); ?>
    	   </a>
    	   <?php endif; ?>"/>

    But it’s not pulling up the images from my images folder.

Viewing 16 replies (of 16 total)
  • The topic ‘How to generate different images per page?’ is closed to new replies.