wp-subtitle-2's Introduction
=== WP Subtitle 2 === Contributors: husobj Tags: subtitle, content, title, subheading, subhead, alternate title Requires at least: 3.0 Tested up to: 3.2.1 Stable tag: 1.0 Add subtitles (subheadings) to your pages, posts and custom post types. == Description == The WP Subtitle 2 plugin enables you to add subtitles to your pages, posts and custom post types. It is based on the functionality of the <a href="http://www.husani.com/ventures/wordpress-plugins/wp-subtitle/">WP Subtitle</a> plugin but is completely re-coded from scratch to work with WordPress 3.0+ including support for custom post types. It supports the same functions as WP Subtitle so you can use either plugin - but not both at the same time, obviously. The functions can be called slightly different though so please check the usage notes below. <?php the_subtitle(); ?> can be used inside The Loop. Outside The Loop, use <?php echo get_the_subtitle( $id ); ?>, where $id is theor post's ID. Just like the WordPress <?php the_title(); ?> function, <?php the_subtitle(); ?> accepts three parameters: = <?php the_subtitle( $before = '', $after = '', $echo = true ); ?> = $before (string) Text before the subtitle. Defaults to "". $after (string) Text after the subtitle. Defaults to "". $echo (boolean) If true, outputs the subtitle HTML. If false, return the subtitle for use in PHP. Defaults to true. = <?php echo get_the_subtitle( $id = 0 ); ?> = $id (integer) Post (or page) ID. = Add support form a custom post type = <?php add_post_type_support( 'my_post_type', 'wps_subtitle' ); ?> == Installation == 1. Upload the WP Subtitle 2 plugin to your WordPress plugins folder (/wp-content/plugins) or install it via your WordPress admin. Then activate it from the plugin admin page. 2. Edit your theme template and add <?php the_subtitle(); ?> or <?php get_the_subtitle(); ?> where you would like the subtitle to appear. == Screenshots == 1. Post edit screen 2. A single post showing a subtitle == Changelog == = 1.0 = * First version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.