auto link word link in content

If I understand correctly … first of all you need to match everything inside paragraphs using regex. $content = “<p>some text which includes test1 and test2 etc</p>”; preg_match_all(“/<\s*p[^>]*>([^<]*)<\s*\/\s*p\s*>/”, $content); then you can use your code.

How to bind each “the_content” elements to a custom variables

As majick suggested on a comment you could use a shortcode to create the accordion markup. If you want to manually define the tab titles and content, you could add something like this to your functions.php. add_shortcode( ‘accordion’, ‘accordion_callback’ ); function accordion_callback( $args, $content ) { $defaults = array( ‘id’ => ‘exampleAccordion’ ); $args = … Read more

How to get different html tags from the content using regex?

“Hi dear all, I finally found a solution for my question. I like to share it with you to be helpful. I will be glad if someone can make a better and precise solution for it. Below is the working code: <!DOCTYPE html> <html> <head> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <style> .accordion { background-color: #7ED957; color: … Read more

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