Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
Version 9
Fraser Marlow
0 points
Beginner
I am working in the Directory theme, and I am trying to tweak the shortcode TIMESINCE…
I set up a test page and dropped the following in: SHORTCODE: TIMESINCE
[TIMESINCE text_after =’text~after’, text_before =’text~before’] SHORTCODE: TIMESINCE 2
[TIMESINCE text_before=”This listing was posted”, text_after =”ago”] SHORTCODE: TIMESINCE 3
[TIMESINCE text_before=”this is the text” text_after=”and this is the other”]
Neither of these work. The output looks as follows:
I am working in the Directory theme, and I am trying to tweak the shortcode TIMESINCE…
I set up a test page and dropped the following in:
SHORTCODE: TIMESINCE
[TIMESINCE text_after =’text~after’, text_before =’text~before’]
SHORTCODE: TIMESINCE 2
[TIMESINCE text_before=”This listing was posted”, text_after =”ago”]
SHORTCODE: TIMESINCE 3
[TIMESINCE text_before=”this is the text” text_after=”and this is the other”]
Neither of these work. The output looks as follows:
SHORTCODE: TIMESINCE
text~before 08 hours 15 minutes ago.
SHORTCODE: TIMESINCE 2
08 hours 15 minutes ago
SHORTCODE: TIMESINCE 3
”this 08 hours 15 minutes ”and
so I went into the file class_shortcodes and added a printout of the $atts values as follows:
function wlt_shortcode_timesince( $atts, $content = null ) {
print_r($atts);
and here are the $atts being passed in…
Array ( [0] => text_after [1] => =’text~after’, [text_before] => text~before )
Array ( [0] => text_before=”This [1] => listing [2] => was [3] => posted”, [text_after] => ago )
Array ( [text_before] => ”this [0] => is [1] => the [2] => text” [text_after] => ”and [3] => this [4] => is [5] => the [6] => other” )
Can anybody tell me what I am missing? Thanks in advance.
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now