• Skip to primary navigation
  • Skip to main content

WP Discuss

Wordpress Research & Analytic

  • Submit
  • Disclaimers
  • About
  • DMCA
  • Privacy Policy
  • Contact

3 obras literarias antiguas

  • No categories
  • All

How to check if there are posts with the same tag

July 19, 2015 by Leave a Comment

I have this code but I can't get to delete the div with the class otrasObras <?php $test = ""; $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { $test .= ',' . $tag->name; } } $test = substr($test, 1); query_posts('tag='.$test.'&showposts=-1'); if(have_posts()){ ?> <div class="otrasObras"> <h3>Contenido relacionado:</h3> <ul> <?php while (have_posts()) : the_post(); if($post->ID != $idPost): ?> <li> <a href="<?php the_permalink(); ?>" title="Ver la obra <?php the_title(); ?>"> <h4><?php the_title(); ?></h4> </a> </li> <?php endif; endwhile; wp_reset_query(); ?> </ul> </div> <?php } ?> I read a bit about this in here http://codex.wordpress.org/Function_Reference/WP_Query but they were using the object syntax. EDIT: .otrasObras is a module that I want to show only when it has content, and the content are other posts with the same tag, so if … [Read more...] about How to check if there are posts with the same tag

Learn More

posts tagged, check seo tags, check title tags, check posting, dell check service tag, check florida tag, check post ume result, check toll tag balance, check meta tags, check ips tag

saving dropdown menu data on custom post type

December 2, 2014 by Leave a Comment

I'm following this tutorial on how to make a custom field. I already used it before and it worked, but I only did it for text inputs. Now I'd like to make a drop down menu and I'm unable. The thing shows up as expected but it is just not saving... Can you spot what I'm missing? add_action( 'add_meta_boxes', 'cd_meta_box_add' ); function cd_meta_box_add() { add_meta_box( 'sobreOProjeto', 'Sobre o projeto', 'projeto_callback', 'Projetos', 'normal', 'default' ); } function projeto_callback($post) { global $post; $values = get_post_custom( $post->ID ); $text = isset( $values['ano'] ) ? esc_attr( $values['ano'][0] ) : ''; $selected = isset( $values['estadoDaObra'] ) ? esc_attr( $values['estadoDaObra'][0] ) : ''; $check = isset( $values['institucional'] ) ? esc_attr( $values['institucional'][0] ) : ''; wp_nonce_field( 'my_meta_box_nonce', 'meta_box_nonce' ); ?> <p> <label for="ano">Ano de Criação</label> <input type="text" name="ano" id="ano" … [Read more...] about saving dropdown menu data on custom post type

Learn More

Contact form 7 not clickable on iphone

June 22, 2019 by Leave a Comment

The below form (webpage here), built using Contact form 7 is not clickable on iPhone. I can't find out why. Would you be able to help? <div class="one-third"> [select* Title "Title" "Mr." "Mrs." "Miss."] </div> <div class="one-third"> [text* firstname placeholder "First Name"] </div> <div class="one-third last"> [text* Lastname placeholder "Last Name"] </div> <div class="one-half"> [text company placeholder "Company"] </div> <div class="one-half last"> [select* country "Country" "United Kingdom" "Afghanistan" "Albania" "Algeria" "American Samoa" "Andorra" "Angola" "Anguilla" "Antigua and Barbuda" "Argentina" "Armenia" "Armenia" "Aruba" "Australia" "Austria" "Azerbaijan" "Azerbaijan" "Bahamas" "Bahrain" "Bangladesh" "Barbados" "Belarus" "Belgium" "Belize" "Benin" "Bermuda" "Bhutan" "Bolivia" "Bonaire" "Bosnia and Herzegovina" "Botswana" "Bouvet Island (Bouvetoya)" "Brazil" "British Indian Ocean Territory (Chagos Archipelago)" … [Read more...] about Contact form 7 not clickable on iphone

Learn More

html contact form, contact form generator, contact us form for website, contact us web form, contact form, Contact form WordPress plugin, i accidentally deleted a contact on my iphone, easy contact form, easy contact form html, emergency contact form

Copyright © 2021 WP Discuss. Power by Wordpress.