Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Breadcrumbs by Instinct

Simple to build custom HTML for breadcrumbs just as you want them without worrying about the functionality of the breadcrumbs themselves. Or if you prefer, use our simple formatted breadcrumbs. Simple is often better. More stuff coming to Aniomalia.

Functions

  • get_aniomalia_breadcrumbs() - outputs array
  • aniomalia_breadcrumbs() - outputs HTML

Breadcrumb item data

  • title - page name (site name if no page is set for frontpage option)
  • url - full permalink to page
  • type - useful for customizing by type
    • home
    • parent
    • blog
    • category
    • tag
    • taxonomy
    • author
    • current

Example: Custom HTML

<?php $breadcrumbs = get_aniomalia_breadcrumbs(); ?>

<?php if ( ! is_front_page() ) : ?>
<nav class="breadcrumbs">
	<ul>
		<?php foreach ( $breadcrumbs as $item ) : ?>
		<li> 
			<a href="<?php echo $item['url']; ?>">
				<?php if ( $item['type'] == 'home' ) : ?>
					<i class="icon-home"></i>
				<?php else : ?>
					<?php echo $item['title']; ?>
				<?php endif; ?>
			</a>
		</li>
		<?php endforeach; ?>
	</ul>
</nav>
<?php endif; ?>

License

This plugin is released under a GPL license. Read more here

About

WordPress plugin to generate an array of breadcrumbs to format it as you want or use our standard formatting

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages