Shortcode just with a php code

It sound like you can accomplish this with 2 PHP functions. 1) Save the searched taxonomy to the user’s session. When they re-run the search function, update the taxonomy that was searched. This way if its saved to their session, you can use it elsewhere on the site just for that user. 2) Create a … Read more

Trying to add get_the_title hook to this line

Joe, have you tried ….placeholder=”I am interested in: ‘.get_the_title().’ “…. also you don’t need all those php’s. The code can be cleaner, easier to read. One can do either: <?php echo ‘<form action=”‘ . esc_url( $_SERVER[‘REQUEST_URI’] ) . ‘” method=”post”>’; echo ‘<h5>’; echo ‘Ask a question <br/>’; ?> etc or <form action=”<?php echo esc_url( $_SERVER[‘REQUEST_URI’] … Read more

Allow Submit Contact Form Default Text In Text Box

This is what I changed to and worked perfectly. echo ‘<textarea style=”margin-left: 15px; width: 246px;” rows=”3″ cols=”28″ name=”cf-message”>’ . ( isset( $_POST[“cf-message”] ) ? esc_attr( $_POST[“cf-message”] ) : ‘I am interested in: ‘.get_the_title() ) . ‘</textarea>’;

Trying To Call a Dynamic Email Address

Assuming this page belongs to an agent: <p> <i class=”fa fa-envelope-o”></i> <span style=”font-size:11px”><?php echo get_the_author_meta( ‘user_email’ ); ?></span> </p> Assuming this page does not belong to the agent, but the email is stored in the page’s custom field named, for example, agent_email: <p> <i class=”fa fa-envelope-o”></i> <span style=”font-size:11px”><?php echo get_post_meta( get_the_ID(), ‘agent_email’, true ); ?></span> … Read more