Limit Post Title Length
Here is how to limit the post title length. Replace your post title with the snippet above.
Here is how to limit the post title length. Replace your post title with the snippet above.
The following code will display the posts from a specific custom post type. <?php $options = array( 'post_type' => 'post_type_name', 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'ASC', 'paged'…
The following will output a list of the current post's tags.
The following snippet will display the categories in a list for the post. The comma in the parenthesis separates each category with a comma.
Here is how to show the excerpt with a custom length of characters that will not cutoff the word. You also do not need to add anything to fucntions.php for…
Here is how to remove the p tag from automatically generating when you use the_content. In the template file you want to strip the p tag from simply add the…
The following snippet will display all the Wordpress posts in a dropdown list. <form action="<? bloginfo('url'); ?>" method="get"><select id="page_id" name="page_id"><!--?php global $post; $args = array( 'numberposts' =--> -1); $posts =…