Indexes Everywhere
Once you have created an index, where can you put it? The short answer (no pun intended) is—anywhere you can put a shortcode. Whenever you create an index, the plugin automatically creates a new blog page for the new index and adds the appropriate shortcode to the page contents so that the index will appear when the page is accessed.
If you edit the new page, you will see something like this in it:
[az-index id="4"]
where the id parameter is set to the id of the index. Everything inside and including the brackets [] is an AZIndex shortcode.
Now, you can leave the shortcode where it is, publish the page, and you have your index, but you can also copy the shortcode into other places in your blog, if you would prefer to have the index showing up somewhere else.
There are four different place you can put the shortcode:
- In another page. You can copy the shortcode from the original page and paste it into any other existing page on your blog.
- In a blog post. An index will work just as well in a post as it does on a page (if it’s not too big!). Just paste the shortcode into your selected post.
- In a text widget. Yes, indexes work in text widgets too, though it does take a little more work. Before shortcodes will work inside a text widget, you have to add the following line of code to your theme template (usually in functions.php), or somewhere else it will be executed—perhaps in plugin:
add_filter('widget_text', 'do_shortcode');Now you can add the shortcode into your text widget and the index will show up in there. (Just remember that you usually don’t have much room in a sidebar widget, so be careful about the size of the index you are dropping in there!)
- In a theme template. If you want an index to appear somewhere else in your blog—in the footer, for example—you can also add the shortcode to one of your template files. But because a shortcode is neither valid PHP or valid HTML, you have to use the WordPress function do_shortcode instead, to insert the index:
<?php echo do_shortcode('[az-index id="4"]');?>
Finally, remember that you can use the same index in multiple place in your blog. I’m not sure how useful that is, but you can make copies of the same shortcode in as many places as you want.
Best Masters Degrees said:
This is so helpful to me! I have such trouble messing with Wordpress themes…
Will Writer Portsmouth said:
Thank you a lot for sharing this with all folks you actually recognize what you’re talking about! Bookmarked. Please additionally talk over with my website =). We will have a hyperlink exchange arrangement among us!
Will Writer Portsmouth said:
I not to mention my friends were viewing the best pointers on your web blog and then quickly got a terrible feeling I never expressed respect to you for those strategies. All the men had been so joyful to learn them and have now quite simply been enjoying those things. Thanks for genuinely quite helpful and then for opting for varieties of helpful useful guides most people are really desperate to be informed on. My personal honest apologies for not saying thanks to you sooner.
Will Writer Portsmouth said:
I would like to thank you for the efforts you have put in writing this site. I’m hoping the same high-grade site post from you in the upcoming as well. Actually your creative writing abilities has inspired me to get my own site now. Actually the blogging is spreading its wings fast. Your write up is a good example of it.
rent cheap textbooks said:
I don’t even understand how I finished up here, however I assumed this post was great. I do not recognize who you are however definitely you are going to a well-known blogger when you aren’t already
Cheers!
Body Massage Spa said:
I’ve been exploring for a little for any high-quality articles or blog posts on this kind of area . Exploring in Yahoo I ultimately stumbled upon this web site. Studying this info So i am happy to convey that I have an incredibly just right uncanny feeling I discovered just what I needed. I so much indubitably will make certain to don’t overlook this site and provides it a glance on a relentless basis.
gossip said:
Outstanding article once again! Thumbs up;)