• 0

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /var/www/html/cnasolution/application/views/question.php
Line: 191
Function: _error_handler

File: /var/www/html/cnasolution/application/controllers/Questions.php
Line: 419
Function: view

File: /var/www/html/cnasolution/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

putting a variable inside a shortcode

I need to put $accordion_title variable inside a WordPress shortcode, so I tried this code :

$accordion_title = _e( 'Delivery', 'woocommerce' );      echo do_shortcode('[accordion id="delivery"]      [accordion_item title='." $accordion_title ".' parent_id="delivery"]          SOME TEXT HERE     [/accordion_item]      [/accordion]'); 

It works but result is not accurate because Delivery phrase will print out of accordion box while I need to display it inside of accordion box:


Could you please guide me to have a modification?

Thanks in advance

Download script demo [LINK]
Download script demo [LINK 2] Download script demo [LINK 2]