Simple Breadcrumb by WordPress Get Category Parents


Returns a list of the parents of a category, including the category, sorted by ID.

<?php if(is_home()) { ?> class="current_page_item"<?php } ?><a href="<?php bloginfo('home'); ?>">Anasayfa</a> &raquo; <?php the_category(' &raquo; ',multiple,false,' &raquo; ')?> &raquo; <?php the_title(); ?>

will output something in these way:

Home » Blogging » WordPress » Theme Tag »Post Title

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s