Add title shortcode

685 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
685
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Add title shortcode

  1. 1. add_excerpt_shortcode.php 2011-11-06<?php /*Plugin Name: Add Title ShortcodePlugin URI: http://semperfiwebdesign.com/Description: Adds an [add_title] shortcode for use with wordpress excerpts.Version: 1.1Author: Semper Fi Web DesignAuthor URI: http://semperfiwebdesign.com/*/if ( ! function_exists( sfwd_add_title_shortcode ) ) { function sfwd_add_title_shortcode($atts, $content=) { if ($content) { $title = $content; } else { $title = get_the_title(); } return <span class="add_title">.$title.</span>; }}add_shortcode( add_title, sfwd_add_title_shortcode );?> - 1/1 -

×