Wordpress shortcoce modification

I have a shortcode problem on a existing WP site that needs to be fixed, too.....

There is a shot code for an accordion in the theme, which we use in several places. But now it is so that the content (not title but -inner) no HTML tags such as a, h1, ... can be set. The formatting is completely like a <p>

The shortcode is currently being replaced by o.s. built up:

function energy_accordion($atts, $content=null, $code) {


'open' => '1'

), $atts));

if (!preg_match_all("/(.?)\[(accordion-item)\b(.*?)(?\/))?\](?.+?)\[\/accordion-item\])?(.?)/s", $content, $matches)) {

return do_shortcode($content);


else {

$output = '';

for($i = 0; $i < count($matches[0]); $i++) {

$matches[3][$i] = shortcode_parse_atts($matches[3][$i]);

$output .= '<div class="accordion-title" data-title="'.$matches[3][$i]['title'].'"><div class="acc-icon"></div><h4>' . $matches[3][$i]['title'] . '</h4></div><div class="accordion-inner">' . do_shortcode(trim($matches[5][$i])) .'</div>';


return '<div class="accordion" rel="'.$open.'">' . $output . '</div>';



Skills: CSS, HTML, Javascript, PHP, WordPress

See more: java remove script tags html, extract tags html perl, wordpress plugin modification, how to create custom shortcode in wordpress, wordpress shortcode example, how to add shortcode in wordpress, how to add shortcode in wordpress editor, how to use shortcode in wordpress, wordpress shortcode tutorial, how to edit shortcode in wordpress, wordpress plugin shortcode, wordpress, wordpress plugin modification project, wordpress design modification, php extract tags html, extract tags html php, myspace tags html, extract tags html page perl, php extract information tags html, substitute tags html

About the Employer:
( 6 reviews ) Herten, Croatia

Project ID: #17492556

23 freelancers are bidding on average $38 for this job

$25 USD in 1 day
(1013 Reviews)

Hi there, Good to see your posting on freelancer...I am a certified WordPress developer…I have an experience more than 10 years in development…I have a huge experience in PHP, CSS, HTML, Bootstrap, java script, Java More

$200 USD in 1 day
(493 Reviews)

Hello. Wordpress expert ready to help you with shortcode modifications. I have more 7 years of Wordpress development experience and more 400 good reviews so all will be done with best quality. Free bugfinxing suppor More

$35 USD in 1 day
(513 Reviews)
$25 USD in 1 day
(231 Reviews)

Hello there, As per my understanding, you need a WP site fixed, We have 7+year experience in website design and developments in HTML, CSS PHP, Wordpress. we are interested in your project. Please provide more detail More

$30 USD in 1 day
(186 Reviews)
$30 USD in 1 day
(236 Reviews)

hello sir i am expert in wordpress i am able to do this work you will satisfy with my work i can do this work asap this simple work for me thank you

$25 USD in 0 days
(205 Reviews)

Hello! friend. I read your requirement about a project. I can give you on work 100% satisfaction or limit time. I would love to have the opportunity to discuss in details over chat. Looking forward.! thanks :)

$41 USD in 1 day
(171 Reviews)

Hello friend, I will do a shortcode modification. Please consider my bid so that I can for you on your this project. Please check my reviews and ratings, It's awesome

$35 USD in 1 day
(175 Reviews)

Hello How are you? I have checked your job description and i am able to handle this project. You can check my work at [login to view URL] Hope you will like my work and give me chance work with you. More

$35 USD in 1 day
(111 Reviews)

Hello! First of all the code you pasted in the brief contains an obvious error, so please, just attach the whole php file this is programmed in (whether this is the theme`s [login to view URL] or some plugin(no need for t More

$20 USD in 0 days
(179 Reviews)

Hello Employer, I have 7+ year’s extensive experience in programming as WordPress custom theme or plugin develops, PSD to WordPress, customize premium themes, twitter bootstrap 3.0, fully responsive. I am flexib More

$25 USD in 1 day
(14 Reviews)

Hello Sir, I read your project description with interest. I can fix the shortcode Right Away, I'll provide you 100% quality with efficiency, I’m able to complete your project on time and within your expected budget More

$25 USD in 1 day
(96 Reviews)

Hello, Hope you're doing great !! I wish to apply for this job as I'm a PHP, WordPress, e-commerce, HTML5, CSS, mobile apps expert with more than 5 years of similar experience. As per your requirements: - I can con More

$60 USD in 1 day
(28 Reviews)

Hi , I have gone through the job details carefully and I am excited to start working on this project. I am confident that I can exceed your expectations by my quality of delivery. I have an extensive knowledge More

$17 USD in 1 day
(19 Reviews)

Hi there, I can start immediately. Please ahre the website URL so that I can have a look? Lets discuss further over chat. My portfolio: I have Experience of more than 6 years in creating and customizing Web the More

$30 USD in 1 day
(37 Reviews)

HI, Please let me take a look at your live version of your site then I can find the issue. Did you have this issue before or you got this recently? Thanks

$13 USD in 1 day
(11 Reviews)

I am having an experience of 8 years and also provide surety of quality work.I also having the team with innovative & creative ideas an d good experienced in Web designers ,PHP, WordPress,C developers.

$88 USD in 1 day
(6 Reviews)

HI, DEAR CLEINT, i hopping that you enjoy this technology , I am BHARATI a professional WEBSITE DEVELOPER AND WEBSITE DESIGNING EXERT, i am responding to your recent for a ( Wordpress shortcoce modification ), More

$25 USD in 1 day
(7 Reviews)
$17 USD in 1 day
(1 Review)