• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

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

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

File: /var/www/html/cnasolution/site/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:

phrase-out-of-accordion-box

Could you please guide me to have a modification?

Thanks in advance

Download script demo [LINK] [Origin]
Download script demo [LINK 2] [Onedrive] Download script demo [LINK 2] [Google drive]