Posts Tagged ‘Themes’

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: [ , , , , ]

Wordpress cheats

This item was filled under [ Wordpress ]

Here are some very usefull informations for those who use Wordpress as CMS
Basic Template Files

style.css
Style sheet file

index.php
Home page file from selected template

single.php
Single post page file

archive.php
Archive or category file

searchform.php
Search form file (here you can add extra stuff)

search.php
Search content file

404.php
Error page file from selected template (you can customize this page)

comments.php
Default comments template file (this will not be [...]

Continue reading...

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