Changing the button type to button, opens an additional field called Click Target, there is note which says: Selector or callback function to push form values on click.
What is the selector or callback function so that the button redirects to a url?
Have tried using just a url, but the button isn’t working?
For example, I want to build a select list of posts that were published in 2017 by user XXX.
I know how to query what I want, but how do I dynamically add the query as the options value:
These options are static:
‘type’ => ‘select’,
‘options’ => array(
‘java’ => ‘Java’,
‘javascript’ => ‘JavaScript’,
),
… but I need to create them dynamically … for example
‘type’ => ‘select’,
‘options’ => ‘name_of_callback_function,
),
… or …
‘type’ => ‘select’,
‘callback’ => ‘name_of_callback_function,
),
https://www.ads-software.com/plugins/caldera-forms/
]]>add_filter('the_content', 'my_fun');
and
function my_fun($content){
print_r($content); // Returns blank ???
}
Should $content be blank? Doesn’t it suppose to return data like get_page( $page_id );
https://www.ads-software.com/plugins/nemus-slider/
]]>I’d like to use the Callback Function type for a couple of fields on the form. One to display the states in a dropdown and another to show multiple checkbox.
How should I create the filter/function to achieve this?
Thanks in advance,
D.
https://www.ads-software.com/plugins/simplr-registration-form/
]]>I used a callback function for the wp_list_comments so that might be the case. The code is
function erubai_comments( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
?>
<?php if ( $comment->comment_approved == '1' ): ?>
<li class="post-comment">
<article id="comment-<?php comment_ID() ?>" class="group">
<div class="vcard grid-1-5">
<?php echo get_avatar( $comment, 128 ); ?>
</div>
<div class="comment-content grid-4-5">
<h4 class="fn">
<?php comment_author_link() ?>
</h4>
<time>
<a href="#comment-<?php comment_ID() ?>" pubdate>
<?php comment_date() ?> at <?php comment_time() ?>
</a>
</time>
<?php comment_text(); ?>
<p><?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?></p>
</div>
</article>
<?php endif;
}
What might be the problem?
Thanks in advance!!
]]>Any help here will be appreciated.
Here is the code as it currently stands:
function.php:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
comments.php
[Code moderated.]
]]>