WordPress display links, hide title

Posted by on Dec 30, 2011 in web, wordpress | No Comments

Display all links in a particular WordPress links category, but hide the category title:

<?php wp_list_bookmarks('category=224&categorize=0&title_li='); ?>

Uses the wp_list_bookmarks function.

http://codex.wordpress.org/Template_Tags/wp_list_bookmarks

PHP, handling forms

Posted by on Jan 26, 2011 in code, how to, web | No Comments

HTML form, which calls a seperate php file, called action.php:

<form action="action.php" method="post">
 <p>Your name: <input type="text" name="name" /></p>
 <p>Your age: <input type="text" name="age" /></p>
 <p><input type="submit" /></p>
</form>

The contents of action.php:

Hi <?php echo htmlspecialchars($_POST['name']); ?>.
You are <?php echo (int)$_POST['age']; ?> years old.

Your name:

Your age:

 

From: A simple tutorial

HTML create new line

Posted by on Jan 11, 2011 in code, how to, web, wordpress | No Comments

To create white space between paragraphs in a post etc in WordPress.

<br />&nbsp;

Syntax Highlighter Evolved for WordPress short codes

Posted by on Dec 12, 2010 in code, web, wordpress | No Comments

Syntax Highlighter Evolved “short codes” or brush aliases for “brushes” brushes.

http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/

Ex:  for c code.