How to link to a page that has a shortcode?

Transients are probably not the way to go here. From what I understand: You want to know if a post has a shortcode by doing some form of look up You want to be able to get a list of permalinks / posts that have this shortcode. Here’s what I suggest. /** * Checks for … Read more

Legacy Audio Shortcode

If your only issue is that the format is incorrect then switch it in the_content hook with the correct version. Non-local content: Place in a plugin or functions.php // hook earlier than 10 add_filter(‘the_content’, ‘wpse_20160110_the_content_fix_audio’, 0); function wpse_20160110_the_content_fix_audio($content){ return str_replace ( ‘[audio:’, ‘[audio src=”https://wordpress.stackexchange.com/questions/214052/, $content ); }

How can I make a shortcode from this code?

It should be as simple as this: function item_count() { $dir=”/PATH TO DIRECTORY/”; $filecount = 0; $d = dir( $dir ); while ( $f = $d->read() ) { if ( ( $f!= “.” ) && ( $f!= “..” ) ) { if( ! is_dir( $f ) ) { $filecount++; } } } return ‘(‘ . … Read more

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