Results 1 to 10 of 12
-
2nd Oct 2011, 11:26 AM #1OPMemberWebsite's:
imdber.org justpaste.meBBCode in Wordpress - W/O a plugin
- Edit your theme's functions.php and add after <?php:
Code:include 'shortcode.php';
- Create a new file in your theme's directory named shortcode.php
- Paste this:
Code:<?php function underline( $attr, $content = null ) { return '<font style="text-decoration:underline;">' . $content . '</font>'; } add_shortcode('u', 'underline'); ?>
underline is the function name
<font style="text-decoration:underline;"> is what comes before the content of the shortcode
</font> comes after the shortcode - To use the shortcode, wrap them with [u] content here [/u ]
- To add more, just duplicate the function above and replace the values to suit your needs.
Here's a function for the [img] tag with the post's title used as an alt tag
Code:function image( $attr, $content = null ) { return '<img src="' . $content . '" alt="'.get_the_title($ID).'"/>'; } add_shortcode('img', 'image');
Read More:
Apathetic Reviewed by Apathetic on . BBCode in Wordpress - W/O a plugin Edit your theme's functions.php and add after <?php: include 'shortcode.php'; Create a new file in your theme's directory named shortcode.php Paste this: <?php function underline( $attr, $content = null ) { return '<font style="text-decoration:underline;">' . $content . '</font>'; } add_shortcode('u', 'underline'); ?> Rating: 5
- Edit your theme's functions.php and add after <?php:
-
2nd Oct 2011, 11:32 AM #2MemberWebsite's:
Katzbb.com Foxmovie.cohow to modiying tag <code>
i have wp site just still use <blockquote > but this tag make padding space big i has been modifiying but still like that
and the tag code not work perfect like i try at stlecss to modifiying with put back color still nothing happen
help please
-
2nd Oct 2011, 11:47 AM #3MemberWebsite's:
TvLog.me
[Best Selling RDP Providers]
BuyWindowsVPS.Com
1Gbit USA/EU Unmetered | Prices Starting From $29.95 | Official Thread
-
2nd Oct 2011, 09:41 PM #4OPMemberWebsite's:
imdber.org justpaste.me
-
5th Oct 2011, 08:53 PM #5Member
how to get dis wid <code>link</code>?????
-
5th Oct 2011, 10:50 PM #6OPMemberWebsite's:
imdber.org justpaste.me^
Code:function code( $attr, $content = null ) { return '<code>' . $content . '</code>'; } add_shortcode('code', 'code');
-
6th Oct 2011, 05:51 PM #7Member
yah..design..the box
-
6th Oct 2011, 05:58 PM #8MemberCode:
code { background-color: #F7F7F7; border: 1px dashed black; color: black; display: block; font-family: verdana; font-size: 7pt; padding: 7px; }
-
7th Oct 2011, 09:09 AM #9Website's:
PornoDDL.ws MovizDDL.wshow to make links clickable?
If bbcode is:
Code:[ur l] link here [/url]
-
7th Oct 2011, 10:26 AM #10OPMemberWebsite's:
imdber.org justpaste.meCode:function linkcode( $attr, $content = null ) { return '<a href"' . $content . '" rel="nofollow">'.$content.'</a>'; } add_shortcode('url', 'linkcode');
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
BBcode plugin that works
By broadcast in forum WordpressReplies: 1Last Post: 8th Nov 2011, 04:36 PM -
BBcode to Html plugin for wordpress
By watsayabtcoffee in forum WordpressReplies: 6Last Post: 17th Sep 2011, 03:12 PM -
[Help] My Blog error after install BBcode Plugin
By warung giras in forum Web Development AreaReplies: 5Last Post: 22nd Jul 2011, 04:15 PM -
Youtube plugin icon/bbcode after "Slide Tag" bbcode?
By CyberAff in forum Feedback and SuggestionsReplies: 9Last Post: 20th May 2011, 03:35 PM -
Need wordpress BBcode plugin
By only1_PO in forum WordpressReplies: 1Last Post: 21st Aug 2009, 08:54 AM
themaCreator - create posts from...
Version 3.18 released. Open older version (or...