1
vote
Custom plugin with shortcode not working
add_shortcode('myCustomShortcode', 'this_particular_function');
As soon as I looked at my code this morning I realized I was trying to pass the function name ([this_particular_function]) as the ...
- 81
1
vote
How call WordPress shortcode inside function file
I need echo do_shortcode('[Shortcode]'); to go where it says "New
Item Contents here!" is there any way to do this?
Just put it there:
add_action( 'woocommerce_account_new-item_endpoint', '...
- 40.1k
1
vote
Buffered output in chunks and shortcode - how do I achieve that?
Chunks are irrelevant. Just use output buffering to capture the entire output and then return the result at the end:
function buffered_source_to_table( $attrs )
{
ob_start();
for($row_values ...
- 40.1k
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
shortcode × 2714php × 367
plugins × 314
functions × 291
plugin-development × 179
custom-post-types × 140
filters × 94
customization × 90
gallery × 88
posts × 86
custom-field × 82
wp-query × 78
theme-development × 60
loop × 59
woocommerce-offtopic × 57
ajax × 55
javascript × 53
images × 52
widgets × 51
templates × 51
categories × 46
html × 42
the-content × 41
jquery × 40
advanced-custom-fields × 39