showing on all pages?

  • oskillzzo
  • Beginner
  • Beginner
  • oskillzzo
  • Posts: 50

Post 3+ Months Ago

So far i have the following:

PHP Code: [ Select ]
<?php if($category["list"]){?>
      <strong>Browse By Genre:</strong>
      <ul><?php foreach ($category["list"] as $item)
         echo '<li><a href="'.HTTP_HOST.KOMMIKU_URL_INDEX.'/'.$item->slug.'/">'.$item->title.'</a></li>';
   }?></ul>
  1. <?php if($category["list"]){?>
  2.       <strong>Browse By Genre:</strong>
  3.       <ul><?php foreach ($category["list"] as $item)
  4.          echo '<li><a href="'.HTTP_HOST.KOMMIKU_URL_INDEX.'/'.$item->slug.'/">'.$item->title.'</a></li>';
  5.    }?></ul>



My question is if i wanted to have this show in all pages/posts instead of just showing up for pages, how would i go about doing this? i tried getting rid of the if command but it throws errors.
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Where is this code from?
  • oskillzzo
  • Beginner
  • Beginner
  • oskillzzo
  • Posts: 50

Post 3+ Months Ago

it is from a wordpress plugin
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

My guess is that there is some code further up the page, or maybe in another part of the plugin that tells when it should be used.

Is the plugin added via the widget sidebars?

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 43 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.