Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
BB-Code-like mechanism by which strings enclosed in square brackets can serve as shorthand for longer and more complicated strings. These strings are processed by callback handlers, usually on page load, which replace the bracket enclosed string with the output from the callback handler.
0
votes
1
answer
66
views
How to show the view more on my display of pages shortcode
The shortcode used to display is like this:
[childpages parentid="1199" display="3" show_viewmore="1"]
the show_viewmore is not yet applied. … if($atts['length'] > 0 ){
//maybe set a minimum length here
}else{
$atts['length'] = 50;
}
if(isset($atts['parentid']) && is_numeric($atts['parentid'])){
//id specified by shortcode …
0
votes
How to show the view more on my display of pages shortcode
got it working now...
I added a counter
$i = 0;
$childnum = count($children);
just after the if statement of the children. & added this code
if ($i == $childnum - 1) {
$outpu …