Add title shortcode
Upcoming SlideShare
Loading in...5
×
 

Add title shortcode

on

  • 512 views

 

Statistics

Views

Total Views
512
Views on SlideShare
512
Embed Views
0

Actions

Likes
0
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Add title shortcode Add title shortcode Document Transcript

    • 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 -