How can I insert a shortcode in the title tag of another?

No, you can’t do that, as the title argument is passed as a string. Given the information you provided, I suppose that your [dt_fancy_title] shortcode does not actually execute shortcodes. The syntax for this function should be: function dt_fancy_title_callback( $params, $content = null ) { // extract the title argument from the params, setting default … Read more

Use Contact Form 7 with Ajax

It is hard to give a 100% answer without seeing the code of how the shortcode is being registered, but from your description it sounds like it is not being registered when ajax requests are being processed. The reason is probably because ajax requests are being handled in an “admin” conttext, and shortcodes are a … Read more

Do shortcode in template file

I think you need to escape the quotes: <?php echo do_shortcode(‘[gfchartsreports include=”28″ type=”bar” chart_js_options=”title: {display: true, text: \’Titletext\’, fontSize:12,fontFamily:\’Arial\’,fontColor:”#000″,fontStyle:”bold”,padding:20}” custom_search_criteria=\'{“status”:”active”,”field_filters”:{“0”:{“key”:”created_by”,”value”:”current”}}}\’]’); ?>

How to use a nested shortcode to render the value of an attribute in parent shortcode

I decided to modify the custom shortcode to make it a wrapper for the parent shortcode. Instead of returning a value, it now returns a call (using do_shortcode()) to the parent with its “to” attribute dynamically set. OLD VERSION … $val = get_some_value(); return $val; NEW VERSION … $val = get_some_value(); return do_shortcode(“[ut_count_up to=\”$val\”]”);

how can I change my font color for Shortcode [closed]

Contact form 7 uses the wpcf7-form class for it’s forms and wpcf7 for it’s parent DIV. You can set the color of the input types by these CSS rules: .wpcf7-form input[type=”text”], .wpcf7-form input[type=”url”], .wpcf7-form input[type=”password”], .wpcf7-form input[type=”email”], .wpcf7-form textarea { color:white !important } The !important rule will make it override any other style’s rules. Head … Read more

Pass fileurl parameter into shortcode from Advanced Custom Fields

Do not use echo in your shortcode. Use return instead. function get_generic_demo() { //Get the field’s value $demo = get_field( ‘generic_demo’); //Save the URL into a variable $url = $demo[‘url’]; // Pass it to the other shortcode and return its value return do_shortcode(‘[sc_embed_player fileurl=”‘.$url.'”]’); } add_shortcode( ‘generic_demo’, ‘get_generic_demo’); Also make sure your fields contain the … Read more

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