Basic WordPress Method

Display Post URL as  Link Text

<?php the_permalink(); ?>

For Homepage Url

<?php bloginfo('url'); ?>

For Image Source Or File Path

<?php bloginfo('template_directory'); ?>/folder-name/

For Get Header Menu

<?php wp_nav_menu('Menu=headermenu' ); ?>

For Get Footer Menu

<?php wp_nav_menu( array('menu' => 'footermenu' )); ?>

Make The “Read More” Link To The Post
Place this in a theme’s functions.php to make the “read more” link to the post

function new_excerpt_more( $more ) {
	return ' <a href="'. get_permalink( get_the_ID() ) . '">Read More</a>';
add_filter( 'excerpt_more', 'new_excerpt_more' );

For More Information


One thought on “Basic WordPress Method

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s