You can achieve it by using following custom code.
function accessnumber( $content ) {
$content = preg_replace( '#(<div[^>]*class=\"zebra[^>]*\">)(.*?)(</div>)#is', '$1<a href="https://wordpress.stackexchange.com/questions/266577/tel:">$2</a>$3', $content );
return $content;
}
add_filter( 'the_content', 'accessnumber', 60 );
Related Posts:
- WordPress Wysiwyg Content not being displayed
- What are the advantages/disadvantages of using jQuery DOM manipulation as opposed to PHP DOM manipulation?
- start_lvl Ignored in Custom walker_nav_menu
- Why do templates contain so many PHP tag pairs?
- What exactly does “Posts page” do in WordPress?
- Adding a search form inside a div
- WordPress Shortcode and Dynamic CSS
- Load custom field value into div with AJAX
- Blank on static home page?
- append PHP function to the_content
- How to use a frontend URL with a Plugin
- How to display blog images using wordpress in existing project
- Extremely slow pageload for long post when using the_content?
- How to display a value from a radio button in the options menu in wordpress
- Custom image upload
- How to display recent posts on home page with custom HTML
- WordPress automatically adds tags when pasting code, how to stop it?
- Placing raw HTML inside a WordPress shortcode
- Slide in Panel WordPress Post
- How to call function at the bottom of post using plugin?
- An unwanted inline style is added to my body tag
- Upload Image in a WordPress page using PHP
- HTML tags in bloginfo description
- Transferring working local PHP site to wordpress – with database (MySQL)
- How do I Add HTML to the_excerpt() & the_content() Output?
- My form action url is being prepended with a directory that does not exists
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- custom fields wordpress
- Why the JavaScript code is ignored from wp editor?
- Populate dropdown with Child Pages based on Parent Page chosen
- How to change redirection route to a php page for making it only accessible by logged-in members?
- Why Won’t My Inputs in a form with a Get method work together?
- How to get the value of input hidden html from text editor to custom page template?
- How to convert select to HTML with PHP tags inside of it [closed]
- Add Codepen animation as Preloader to WordPress
- Path for php file for inserting data through html form
- php within html within php
- Create a WordPress shortcode using PHP [duplicate]
- Add shortcode in my div
- php esc_html_e with an html link inside not working
- Using ob_start and ob_get_clean with wordpress shortcode
- WordPress wp-admin redirect and exception
- Creating an image from a custom field
- the_content() printing DOCTYPE, and tags in the middle of page
- Get the_content surrounded by instead of
- WordPress forms submissions and PHP files
- Need help removing […] after excerpt
- Initial offset of number of posts in home page on the posts page
- Shortcode displaying at the top of the page [duplicate]
- Is it possible to isolate and use WordPress functions outside of wordpress
- Time Delay a URL Redirect for Specific Page
- Cascading dropdown select search based on Parent Page & Child Page
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Background image no longer fits to screen now that project is in php files
- Search bar for wp menu
- Executing php on button press
- Shortcode in Shortcode/HTML Graphics and Pictures
- I can’t go to the page archive-{post_type}.php
- WP Website is shown in HTML
- Use Search Term in html link and redirect
- Mysterious letters appearing at the top of a few pages
- Current WordPress Page Title as Search Parameter into A Tag
- If user has clicked link add class and store using PHP/WordPress
- HTML Formatting “single_term_title()”?
- How to Protect a private folder inside uploads folder, if User is not Logged In?
- How to center all text body in single.php at once?
- sessionStorage saves input value in browser but it is not loaded in the form field
- Changable favicon
- How can I get my pagination loop to display the correct number of total pages?
- AMP version of e-commerce without plugin
- Use PHP to inject HTML into before page renders?
- How to make a parent page for author.php?
- Creating Log-In Page for backend server
- user update profile for custom code
- Vertical Menu for one page only
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- Multisite – Display different header content based on which site is accessed
- Show post/page into div using function
- html to posts, jpg to featured image, zip file contains jpg and html
- How do you change the tag font size in the repeater-template.php [closed]
- PHP tag in post content makes wordpress go crazy
- How to only fetch certain Tag ID’s
- Where to find the html for WordPress site? [closed]
- RegExp to EXCLUDE strip HTML (FOR SOMME) comments
- Pagination for div’s
- Add end mark at the end of every article
- wp nav menu without label
- Pass the updated value of aid from form using ajax
- Editing the contents of just one div on a page from wordpress
- Show contact 7 form in popup
- How Can I Center the Logo in the Navigation Menu? [closed]
- Loading a post’s content, into a div outside the loop, when it’s title is selected in a list
- HTML in PHP problem [closed]
- How to customize posts in WordPress by using HTML and CSS?
- Header location [closed]
- Load wp_editor on button click
- Add topbar to static html page
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- Why do I get a 404 error on my custom post type archive pagination?
- How to modify default tags in wp_head()