Google map iframe into wordpress theme [closed]

I’ve used it like this and it works well 😉 $(“.div”).html(“<iframe width=”850″ height=”450″ frameborder=”0″ scrolling=’no’ marginheight=”0″ marginwidth=”0″ src=”http://yourlocation.com”></iframe>”); $(“.div”).css(“display”,”block”);

Combine two foreach Arrays into one table row

if the artist names and track names are in matching order and the same in number then: <?php $artists = get_post_custom_values(‘Artist’, $post->ID); $tracks = get_post_custom_values(‘Track’, $post->ID); $i=0; foreach ( $artists as $key => $value ) { $class = ( $i % 2 ) ? ‘alternative’ : ”; // modulus operator echo ‘<li class=”‘ . $class … Read more

How to handle PHP parse errors?

You have to close the PHP context if you use raw HTML output. Instead of … <?php global $EM_Event; <div class=”content_left”> <?php gteventstore_before_loop(); ?> … close PHP before the div: <?php global $EM_Event; ?> <div class=”content_left”> <?php gteventstore_before_loop(); ?> Use an IDE with a PHP parser to see such syntax errors early. You code looks … Read more

Cafe Food Menu upload

Rock the custom fields? You could do this manually or by using a plugin such as magic fields or PODS. I’ve never used PODS but I’ve been eying it for a while and think this may be your best route. You could do something like creating a category called “breakfast” and one called “lunch” then … Read more