Links in the_content not linked

Running make_clickable on the_content will get you your links. So… apply_filters(‘the_content’,’make_clickable’); … in your functions.php should link your content. It will be simple but you should get hyperlinks. I don’t see a way to add the target=”_blank” part. make_clickable is in wp-includes/formatting.php. You could use it as a pattern for a function that would add … Read more

add_filter to the_content after apply_filters

if you want to keep the current setup, try to hook in early and use do_shortcode(): function av_standalone_doc_404($content) { remove_filter( current_filter(), __FUNCTION__ ); if ( has_term( ‘standalone-document’, ‘formats’ ) ) { $filtered_content = do_shortcode( $content ); // … If you want to avoid repeating shortcode outputs use a static variable in the shortcode handler: function … Read more

Split the content of the_content();

I am guessing, at least partially, but it sounds like the FaceBook content is loaded as a filter on the_content, which you run on both blocks of content. The quick fix, keeping most of your code intact, would be to remove the FaceBook filter for the first array, then put it back for the second. … Read more

Strip from or something better?

Manipulating HTML with regular expressions is not a good idea. I suggest you use DOMDocument: // input $html = apply_filters(‘the_content’, get_the_content()); $dom = new \DomDocument(); $dom->loadHtml($html); $blockquotes = $dom->getElementsByTagName(‘blockquote’); foreach($blockquotes as $blockquote){ foreach($blockquote->childNodes as $e){ if($e->nodeName === ‘p’){ // create a text node with the contents of the <p> $blockquote->insertBefore($dom->createTextNode($e->textContent), $e); // remove <p> $blockquote->removeChild($e); … Read more

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