Posts Tagged ‘cheats’

Wordpress extra stuff

This item was filled under [ Wordpress ]

Here are some very usefull informations for those who use Wordpress as CMS
Wordpress extra stuff

/%postname%/
Custom permalinks

<?php include(TEMPLATEPATH . ‘/x’) ?>
Inlude any file (replace “x” with filename)

<?php the_search_query(); ?>
Value for search form

<?php _e(‘Message’); ?>
prints out message

<?php wp_register(); ?>
Displays the registration link

<?php wp_loginout(); ?>
Displays the login/logout link (only for registered users)

<?php <!–next page–> ?>
Divides the content into [...]

Continue reading...

Tagged with: [ , , , , , ]

Wordpress PHP Snippets for templates

This item was filled under [ Wordpress ]

Here are some very usefull informations for those who use Wordpress as CMS
PHP Snippets for templates – usefull functions

<?php the_content(); ?>
Content of the posts

<?php if(have_posts()): ?>
Checks if there are posts

<?php while(have_posts()) : the_post(); ?>
Shows posts if posts are available

<?php endwhile; ?>
Closes the ‘while’ PHP function

<?php endif; ?>
Closes the ‘if’ PHP function

<?php get_header(); ?>
Loads the header.php [...]

Continue reading...

Tagged with: [ , , , ]

Wordpress PHP snippets for header

This item was filled under [ Wordpress ]

Here are some very usefull informations for those who use Wordpress as CMS
PHP Snippets for header – usefull functions

<?php bloginfo(‘name’)?>
Title of the site

<?php wp_title(); ?>
Title of the specific post or page

<?php bloginfo(’stylesheet_url’); ?>
The style.css file’s location into the current layout

<?php bloginfo(‘pingback_url’); ?>
Pingback URL for the site

<?php bloginfo(‘template_url’); ?>
Locate the site’s theme files

<?php bloginfo(‘version’); ?>
Installed WordPress [...]

Continue reading...

Tagged with: [ , , , , ]
Update me when site is updated