Header location [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 7 years ago. Improve this question I am editing a plugin, and I need to make it so that this line <h4><span><strong>100%</strong></span> which ends up making a … Read more

WordPress: code structure

EDIT: I’ve posted them separately here wordpress.stackexchange.com/questions/137672/… and here wordpress.stackexchange.com/questions/137673/…. I’ll vote to delete this one. I’m working on a WordPress site, and I’m having a few questions about structuring my PHP code. Although I’ve have experience with structuring code in other frameworks, I’m wondering how you would do this in WordPress. I might have … Read more

Set variable in javascript and using in my shortcode

my script is function($) { var google_map_address = $(‘#address’).text(); $(function () { $(‘#gmap’).gmap3({ marker: { address: google_map_address }, map: { options: { zoom: 14 } } }); });})(jQuery); and my php code is init_shortcode(); function init_shortcode() { $shortcodes = array( ‘gmap’ => ‘spyrowebs_gmap’); foreach( $shortcodes as $tag => $func ) add_shortcode( $tag, $func ); } … Read more

Child-theme suddenly stopped working [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 7 years ago. Improve this question I have been working on a website using the twenty twelve theme. I was modifying the footer.php and when I refreshed … Read more

Help with if/else loop [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago. Improve this question can you help me to add an else statement to this loop? <?php $post_type = ‘post’; // <– Post Type … Read more