Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67497

Replace template code with code to do a shortcode [duplicate]

$
0
0

This question already has an answer here:

Tried many ways to get this code to work from a php file :

<a class="fancybox"
href="#contact_form_pop">Create seller account</a>
<div class="fancybox-hidden">
<div id="contact_form_pop"><?php echo do_shortcode("[contact-form-7 id="1452" title="Contact form 1"]"); ?></div>

What i want is the above code to replace code used in the DIV, but i cannot get it to work:

if( $screen == 'ads' ){
                    ?>
                    <div class="text-center author-no-listing">
                        <a href="<?php echo esc_url( add_query_arg( 'screen', 'new', $author_url ) ) ?>”>
                            <i class="aficon-plus-circle"></i>
                        </a>
                        <h5><?php esc_html_e( 'Offer your product/service by submitting your first advert', 'adifier' ) ?></h5>
                    </div>
                    <?php
                }

Is this possible?


Viewing all articles
Browse latest Browse all 67497

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>