I would like to add a php code into a shortcode code in HTML editor. My shortcode looks like this:
<?php echo do_shortcode('[eapi keyword="KEYWORD" n=25]'); ?>
It works, if I put just a word instead of KEYWORD. Now I would like to add an individual title with this php code:
<?php the_title(); ?>
So I inserted it into the shortcode like this:
<?php echo do_shortcode('[eapi keyword="<?php the_title(); ?>
" n=25]'); ?>
But unfortunately it did not work. How can I successfully insert this php code into the shortcode?