Defining the output of a WordPress Att

I am not sure but do you want to get that attribute value to work on them ? This is a way to do so // Add Shortcode function formatage( $atts , $content = null ) { // Attributes extract( shortcode_atts( array( ‘ptid’ => ”, ‘ptle’ => ”, ‘page’ => ”, ), $atts ) ); … Read more

the_time function inside HTML dom parser

This is because shortcodes filter the content passed to the and replace based on the shortcode tag. In your case I recommend using get_the_time instead since it provides the same functionality but returns the value instead of echoing it. For more info on date formatting and args for this tag check out get_the_time

Allow user to input shortcode into wordpress widget

Very rough and partly cribbed from the Codex, but it should get you started: class My_SC_Widget extends WP_Widget { private $shortcodes = array( ‘sc1’ => ‘[sc1]’, ‘sc2’ => ‘[sc2]’, ‘sc3’ => ‘[sc3]’, ); function __construct() { // Instantiate the parent object parent::__construct( false, ‘My SC Widget’ ); } function widget( $args, $instance ) { if … Read more

Trying to the deduce shortcode from a function

I wonder if this would work: [tabs tab1=”Tab 1″ tab2=”Tab 2″ tab3=”Tab 3″] [tab id=”1″]Content for tab one goes here.[/tab] [tab id=”2″]]Content for tab two goes here.[/tab] [tab id=”3″]]Content for tab three goes here.[/tab] [/tabs] You should also check if the shortcode definitions exists: add_shortcode( ‘tabs’, ‘some_function_for_tabs’ ); add_shortcode( ‘tab’, ‘some_function_for_tab’ );

Shortcode for printing post titles

I know this has been answered and the answer solved the issue but I found it very poor for any newbie that want to learn WordPress so I give mine in the hope it will be better: While get_posts() can do the job I would have used a simple query, for a secondary loop I … Read more