D12Eminem989
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Custom field parse errorThat worked great, thank you very much! 🙂
Forum: Fixing WordPress
In reply to: Blocking display of html codeThat worked perfect, thanks again!
Forum: Everything else WordPress
In reply to: Custom fields MySQL update?Thanks very much dude, that worked just great. 🙂
Forum: Fixing WordPress
In reply to: How to hide categorie posts on front page?Anyone?
Forum: Fixing WordPress
In reply to: if and elseThat worked perfect, thank you very much for your time sir. It is greatly appreciated. 🙂
Forum: Fixing WordPress
In reply to: if and elseThat worked really well, now only one more thing. I am trying to get that code to work with the following:
<?php $my_values = get_post_meta( $post->ID, 'trailer', true ); if( $my_values ) { echo '<div align="center"><object width="490" height="220"><param name="movie" value="http://www.youtube-nocookie.com/v/$my_values?fs=1&hl=en_US&rel=0&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube-nocookie.com/v/$my_values?fs=1&hl=en_US&rel=0&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="490" height="220"></embed></object></div>'; } else { echo 'Sorry, there is no cinema trailer yet.'; } ?>Is the something I am doing wrong? I would assume a value inside a value wont work.
Forum: Fixing WordPress
In reply to: if and elseI am using it in the index.php for post content. What I originally had that worked was:
<?php $values = get_post_custom_values("introduction"); echo $values[0]; ?>But I wanted to amp it up a little and return a message if no custom value was defined for that post. So if I don’t have an introduction, it would return a defined message.
The one Joseph gave me didn’t work. When I didn’t post anything for that value it was blank and when I posted something in that value it returned the message it should of shown if no value was defined. So it was reversed if that makes sense.
Forum: Plugins
In reply to: [Plugin: Flash Video Player] Image Not WorkingCan someone please help me. Thanks!