24 | troubleshooting wordpress themes

Posted by alchymyth | Wordpress | Wednesday 3 March 2010

here is a little trick if you need to check some variables, or try something new in your wordpress theme while the site is live.
use a conditional if statement to check that you are logged in as the original administrator, and only then do what you need to do. this way you can perform and display the neccesary tests, without the public seing anything.

<?php
if ('1' == $user_ID) :
echo 'you are logged in - this will not be shown to the public: <br/><br/>';
  // test routine begin //
echo 'cat-id , cat-slug , cat-name , number of posts <br/><br/>';
$categories= get_categories('');
foreach ($categories as $cat) {
echo $cat->cat_ID.' , '.$cat->category_nicename.' , '.$cat->cat_name.' , '.$cat->category_count.'<br/>';
}
  // test routine ends //
echo '<br/>end of logged in section <br/>';
endif; ?>

in this example, i displayed a full list of all categories with id, slug, and name.

the wordpress back-end (dashboard) is generally a good place to work, however for developers, some lists don’t show all the variables or parameters that would be useful for programming custom displays or functions. for instance, the IDs of posts, pages, categories, tags, etc. are not easily found in the back-end.

you can (and sometimes need to) build your own code snippets to show them on the spot where you are working with them.
this avoids a lot of guesswork.

and now you know how to hide these displays from public view.

23 | Multi-Column Grid-Style Posts in WordPress

Posted by alchymyth | Wordpress | Friday 29 January 2010
a three column grid category template

following question comes up regularly in the wordpress support forum: ‘i want to show my posts in three (four, five) columns, how can i do it?’
here, i am going  to present yet another solution: a flexible core structure to allow any number of columns with any number of rows, limited only by screen space, readability and fantasy…
the structure (for instance 3 columns, 4 rows, 12 or more posts):
1 5 9
2 … » read more »

22 | hyperlinks in wordpress image captions

Posted by alchymyth | Wordpress | Sunday 17 January 2010
one million dollars, copyright silkandart

have a look at the image above and check the link within the image caption.
nice feature?
as many of you might have experienced before, the image caption function of wordpress filters all html content, including any attempts to insert  links.
however, this functionality would come very handy, if you want to credit the copyright owner of the image (which could obviously be yourself) by providing a one-click connection to their website.

21 | zebra style wordpress loop

Posted by alchymyth | Wordpress | Thursday 14 January 2010

to start, i would like to express my thanks and gratitude to all the volunteers in the wordpress forum who patiently and freely give their time and attention, and share their knowledge and experience with all the users coming with questions and problems about their wordpress installation and modifications.
a great community.
lists or posts styled with alternating color backgrounds, for instance, can inprove the readability of blogs.
most themes and the standard wordpress installation are not offering … » read more »

20 | wp default theme in 3 columns

Posted by alchymyth | Wordpress | Saturday 2 January 2010
3 column kubrick theme

Part of my time, I am spending designing and troubleshooting wordpress themes.

This is my latest ‘hack’, turning the default theme that comes with every wordpress installation, into a 3 column version, with equal sized left and right sidebar columns, all dynamic and widget ready.
All functions of the default theme are fully preserved. You can still modify the header colours from within the dashboard.
All files and graphics zipped for download. A great start for learning to … » read more »

19 | Water Filter Benefits

Posted by dr michael | Health | Monday 7 September 2009
waterbanner5

All processes within your cells are depending on water in one way or another. Also, your bodies are made to two-thirds out of water. So, it is no wonder that you depend on a constant supply of drinking water, and that dehydration can cause all sorts of illnesses or diseases, or can make you feel bad.
Drinking enough clean pure water every day is so important to your health that one doctor wrote a whole … » read more »

Page 1 of 41234»