Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Alex kinda brings txp tags to wordpress
So I was going through the support pages of the Wordpress site (since their forums tend to be pretty silent for questions passed the beginner level), and I fell on this page, which contained a tiny snippet of code that instantly clicked:
// [bartag foo="bar"] function bartag_func($atts) { extract(shortcode_atts(array( 'foo' => 'no foo', 'baz' => 'default baz', ), $atts)); return "foo = {$foo}"; } add_shortcode('bartag', 'bartag_func');
Within a second I realized that Alex was bringing txp tag like functionality to Wordpress. Now granted you can only refer to these tags in posts and pages, but hopefully they’ll soon start to allow them in templates and themes. It would certainly make my life easier designing WP sites, if it contained even part of the greatness that TXP brings to the table.
Offline
Re: Alex kinda brings txp tags to wordpress
That does look remarkably similar to the parser in TXP 4.0.6 and lower…
Offline
Offline
Re: Alex kinda brings txp tags to wordpress
Here’s the full explanation in the code: Add hook for shortcode tag
I’ve been perusing the Wordpress 2.6 code today, maybe I’ll make the switch ;)
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: Alex kinda brings txp tags to wordpress
Offline
Re: Alex kinda brings txp tags to wordpress
variaas wrote:
Now granted you can only refer to these tags in posts and pages, but hopefully they’ll soon start to allow them in templates and themes.
Offline