Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter John

    (@mav3000)

    stvwlf – Thank you very much! adding the <?php bloginfo(‘template_directory’); ?> before the image paths has sorted out the problem, and they now work fine.

    Thanks!

    Thread Starter John

    (@mav3000)

    Hi, My CSS file links to the images using the path ‘images/image.jpg’ and works fine, but the images included in the template php files do not show up on any pages other than the home page.

    I have the images in the templates files in both the ‘images’ folder in my site’s root folder, as well copies in the ‘images’ folder in the wordpress theme folder. They still don’t show up.

    is there some sort of wordpress variable I can use in the url of the images that points them to the siteroot? or should I just use the complete URL of the images in the template files?

    Surely everyone else with permalinks enabled would have the same issue wouldn’t they?

    Thread Starter John

    (@mav3000)

    Hi Michael,

    Thanks very much for the code. Unfortunately I don’t understand much of it. Could you tell me what it does, and where in my template I need to put it?

    Sorry for being a newbie!

    Richard

    Thread Starter John

    (@mav3000)

    Hi Avani,

    Thank for very much for such a quick reply. Your code works perfectly!

    I removed the
    unordered list tags to keep the event sub-page list in a single unordered list, which lists the sub-categories perfectly, excluding everything else.

    My final code looks like this within my sidebar:


    <div class="links"><!-- links -->

    • <h2>Event List 2</h2>
      <?php $children = wp_list_pages('title_li=&child_of=12&echo=0');
      if ($children) { ?>
      <?php echo $children; ?>
      <?php } ?>

    </div> <!-- added for tidiness -->

    Thanks again – I’ll recycle this snippet on my other pages.

    Thread Starter John

    (@mav3000)

    Hi Avanimisra, you are correct. I have the following page hierarchy:

    index.php
    events
    event1
    event2
    event3

    all of the event pages are created dynamically in wordPress. I need to list the individual events on the index.php page.

    I will then need to list the individual ‘events’ on the events page, but this could well be the same code I hope.

    I am making the site offline at the moment while I wait for a domain transfer to complete, so unfortunately cannot post a URL at this time.

    also, just to confirm I wish to list the event ‘children’ without the ‘events’ parent also being shown.

    Any ideas?

Viewing 5 replies - 16 through 20 (of 20 total)