Which wordpress function is the caption shortcode linked to?

You should try this on a default theme (without any plugins), to see if that makes any difference. Your shortcode example: gives this output: <div id=”my-caption-id” style=”width: 409px” class=”wp-caption alignnone my-caption-class”> <img src=”https://wordpress.stackexchange.com/questions/158628/whatever.jpg” alt=”whatever” width=”399″ height=”600″> <p class=”wp-caption-text”>My caption text</p> </div> on the Twenty Twelve theme. It’s just a little bit formatted to make it … Read more

Add variable in between do_shortcode

I would rather pass the variable to the id attribute inside the shortcode. You can even decide to remove the id attribute inside the shortcode and make it a static value that you pass to your custom query For examples and more info about how shortcodes operate, check out the Shortcode API

How can I extract a word from page/post URL using shortcodes

<?php function url_fetcher(){ $pageURL = ‘http’; if ($_SERVER[“HTTPS”] == “on”) {$pageURL .= “s”;} $pageURL .= “://”; if ($_SERVER[“SERVER_PORT”] != “80”) { $pageURL .= $_SERVER[“SERVER_NAME”].”:”.$_SERVER[“SERVER_PORT”].$_SERVER[“REQUEST_URI”]; } else { $pageURL .= $_SERVER[“SERVER_NAME”].$_SERVER[“REQUEST_URI”]; } //echo $pageURL; $str = explode(“https://wordpress.stackexchange.com/” ,$pageURL); //print_r($str); $str1 = $str[3]; echo $str1.'<br \>’; $str2 = explode(“-“, $str1); $cat = $str2[0]; echo $cat.'<br \>’; $dog … Read more

Shortcode from admin textarea to page

Your sort of right, the WordPress editor saves content thru a filter called the_content. This filter is used to filter the content of the post after it is retrieved from the database and before it is printed to the screen. Apply this filter to simulate TinyMCE formatting. <?php echo apply_filters( ‘the_content’, $options[‘textarea_input’]); ?>

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