Trouble passing attribute into shortcode function

Sorry I deleted my comment because I found the issue. You need to do an html entity decode on query variable. Use the code below. function hey_query_shortcode( $atts ) { extract( shortcode_atts( array( ‘query’ => ”, ‘style’ => ” ), $atts ) ); $query = html_entity_decode( $query ); ob_start(); $the_query = new WP_Query( $query ); … Read more

problem with the loop

did you try this? $custom_query_args = array( ‘post_type’ => ‘casestudy’, ‘connected’ => $post->ID ); $the_query = new WP_Query(); $the_query->query($custom_query_args);

Page template doesn’t display simple HTML if inserted into other page?

Couldn’t you use the custom form like this: STEP ONE: Open a Text editor and paste your form content- <?php // Custom Contact Form ?> <div id=”my-ccf”> <form id=”contactform” method=”post” action=”<?php bloginfo(‘template_directory’); ?>/_assets/submitemail.php”> <input name=”user” type=”text” value=”Name” /> <input name=”email” type=”text” value=”E-Mail”/> <input name=”url” type=”text” value=”Website” /> <input name=”subject” type=”text” value=”Subject” /> <textarea rows=”10″ name=”message” … Read more