Multiple Block Quotes without using HTML

you can create shortcode for that 1.make a shortcode unsing add_shortcode(functions.php) add_shortcode(‘bquote’,’ravs_blockquotes_func’) function ravs_blockquotes_func( $atts, $content=”” ) { extract( shortcode_atts( array( ‘style’ => ‘style1’ ), $atts ) ); return ‘<blockquote class=”‘.$style.'”>’.$content.'</blockquote>’ } 2.now just simply define quote in shortcode(post or page editer) [bquote style=”style2″]your quote[/bquote] it’s output in html like <blockquote class=”style2″>your quote</blockquote> 3.create as … Read more

Client Profiles

Do they clients ever need to log in? If so, I would make them users and give them a custom role. Then add all the meta to the user profile page for that user only. In that case, see: http://codex.wordpress.org/Roles_and_Capabilities If not, I would make them custom post types and use something like Scribu’s Posts-to-Posts … Read more

Custom search by several options send on form not works

put value of keys and check results.(use get_users function to query users) $args=array( ‘relation’=>’AND’ ); if(isset($_GET[“nome_of_city”])){ $arg[]=array( ‘key’ => ‘your_key_name_1’, ‘value’ => $_GET[“nome_of_city”] ); } if(isset($_GET[‘name_of_neighborhood’])){ $arg[]=array( ‘key’ => ‘your_key_name_2’, ‘value’=>$_GET[‘name_of_neighborhood’], ‘compare’=>’IN’ ); } if(isset($_GET[‘name_of_course’])){ $arg[]=array( ‘key’ => ‘your_key_name_3’, ‘value’=> $_GET[‘name_of_course’], ‘compare’=>’IN’ ); } $users=get_users($args); foreach ($users as $user) { echo ‘<li>’ . $user->user_email . … Read more

Permalink structure as code in back-end?

Your code works to create links, and WordPress should make a valiant effort to find the correct post, but it doesn’t get complete permalinks. To do that you will need to query the database for the post and construct a permalink if one is found. function transform_pseudo_anchor_wpse_101201($match) { global $wpdb; if (isset($match[1])) { $name = … Read more

Using Custom Fields in post, need to put into the_content

I think that I would hijack the gallery shortcode. function my_gallery_shortcode($atts) { global $post; $str = gallery_shortcode($atts); $project_title = get_post_meta($post->ID, “Project_Title”, true); $project_date = get_post_meta($post->ID, “Project_Date”, true); $project_location = get_post_meta($post->ID, “Project_Location”, true); $str .= ‘<div class=”project_details”>’; $str .= ‘<div class=”project_details_title”>’.$project_title.'</div>’; $str .= ‘<div class=”project_details_date”>’.$project_date.'</div>’; $str .= ‘<div class=”project_details_location”>’.$project_location.'</div>’; $str .= ‘</div>’; return $str; } add_shortcode(‘gallery’,’my_gallery_shortcode’); … Read more

Custom field in a shortcode?

$post is global variable, so it’s not visible in this scope (and when you use $post in your code, you’re not referring to global $post variable but to local one) You should put global $post somewhere in your code. For example like this: … while ($loop->have_posts()){ global $post; $loop->the_post(); $output .= ‘<li><a href=”‘.get_permalink().'”><img src=”‘.get_post_meta($post->ID,’wpcf-udstiller-logo’,true).'”/></a></li>’; } … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)