Initialize add_action() for every copy of a specific shortcode

You can pass values by adding your own filter. Proof of concept: add_filter( ‘my_filter’, function() { return array(1,2,3); } ); function print_partners_scripts() { $args = apply_filters(‘my_filter’,null); var_dump($args); } add_action( ‘wp_footer’, ‘print_partners_scripts’ ); Where you to register and enqueue your script instead of echoing it directly to the page, you could use wp_localize-script to pass information … Read more

Manipulated shortcode output

It looks like you are getting caught in some wpautop() replacements. Many people find the defualt WordPress wpautop() filter to be frustrating. So often in highly customized themes, there is a homegrown replacement. For example, the theme you mentioned has a replacememt for some of the default WordPress filters. You can see a thread about … Read more

Add an access code form to call a unique page based on page without registration

If your code is truly going to be the slug (“secret-page” = example.com/secret-page), you could do something like this… wp_redirect(get_bloginfo(‘url’).”https://wordpress.stackexchange.com/”.$_POST[‘access_code’]); But realize that headers cannot have already been sent, so this needs to happen before get_header(). Some more testing would be needed, but that should get you down the right path in principle. You could … Read more

Video shortcode inside tabs shorcode NOT working

Make sure to wrap content with do_shortcode() I’m not sure what the exact function looks like, but for simplicity sake take a look at this example: //[tab]Content[/tab] function tab_func($atts, $content = null) { extract( shortcode_atts( array( ), $atts ) ); $output=”<div class=”tab”>”.do_shortcode($content).'</div>’; return $output; } add_shortcode( ‘tab’, ‘tab_func’ ); If you take a look at … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)