Posts Tagged ‘WordPress’

Jan 6

WordPress Codex has extensive documentation on the different template tags available for use in themes, but having a cheatsheet of all the available template tags can definitely come in handy.

Ekin Ertac has created a really useful WordPress Cheatsheet that lists out all the available template tags and their purpose, along with listing several other useful information for creating or modifying themes. The cheatsheet is available for download in PDF format.

Download WordPress Cheatsheet


Jan 18

To hide the author info (written by) on the pages (pages only – not post) I found this post. It wasn’t my template or code but I played with my code similarly to remove both items:

“Open the page.php and delete this line:

<?php _e(‘By’,'themename’); ?> <?php the_author_posts_link(); ?>,
Save your changes, and you are done.”

Mine varied by the following

Removed “Post by” and Date Stamp – following lines of code, (always make copies before changing)…

<span>posted by <?php the_author() ?></span></div>
<div>
<span><?php the_time(‘M’) ?></span>
<span><?php the_time(‘j’) ?></span>

Best to just make a template or 2 to play with before the main page.php