zefdesign
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Multiple Loop and Comments problemPlease help folks!
Forum: Plugins
In reply to: [Plugin: Custom Field Template] Warning mysql real escape string?I feel dumb, how do I even find that out?
Forum: Plugins
In reply to: [Plugin: Custom Field Template] Warning mysql real escape string?Anyone? This has stopped me from being able to edit my posts???
Forum: Fixing WordPress
In reply to: Warning mysql real escape string?Turns out I was wrong getting the same error message again. It’s just Custom Field Template that is causing it… How do I sort this?
Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/zef/public_html/akira/wp-includes/wp-db.php on line 450 Warning: Cannot modify header information - headers already sent by (output started at /home/zef/public_html/akira/wp-includes/wp-db.php:450) in /home/zef/public_html/akira/wp-includes/pluggable.php on line 865
Forum: Fixing WordPress
In reply to: Warning mysql real escape string?Thank you it turns out it was custom field template plugin. An upgrade sorted it.
Forum: Fixing WordPress
In reply to: Warning mysql real escape string?I’m afraid I tried it and got exactly the same errors..
Forum: Fixing WordPress
In reply to: Warning mysql real escape string?Help please I can’t build my website if I can’t solve this?
Forum: Fixing WordPress
In reply to: Warning mysql real escape string?I’ve tried googling, and obvious things like checking for a spaces in code…
Forum: Fixing WordPress
In reply to: Insertin custom field in php code?That looks exactly like the right sort of thing actually, thanks. I tried it and it hasn’t generated anything.
The code I would normally use would be:
<?php $values = get_post_custom_values("post_title"); echo $values[0]; ?>
But obviously I can’t just put that in the code…Sorry about this, but i’m real grateful
Forum: Fixing WordPress
In reply to: Insertin custom field in php code?Maybe I didn’t explain what I mean clearly enough.
I have a post for an album for example it’s called ‘Apples’. That post has a custom field called post title which I assing the vale ‘Apples’.
I then have my code in single.php. And I want it to display a list of posts from the category name of ‘Apples’. But i want to assing the category name using my custom field.
eg:
<?php $my_query = new WP_Query(‘category_name=INSER CUSTOM FIELD HERE
Forum: Fixing WordPress
In reply to: Insertin custom field in php code?Thanks for responding, I am very bad at php however and still don’t know how to apply the code. I tried using it but it wasn’t working for me. the code I posted does work… but I don’t know hwo to stick my custom field in the code.
Forum: Fixing WordPress
In reply to: Insertin custom field in php code?PLease help monday people!!!!!
Forum: Fixing WordPress
In reply to: Insertin custom field in php code?I’m sure this is doable but I can’t find anything saying how…
Forum: Fixing WordPress
In reply to: query_posts within the loop?Okay I did some more searching and have found the perfect code:
<?php $my_query = new WP_Query('category_name=<strong>HERE-IS-WHERE-I-WANT-TO-INSERT-CUSTOM-FIELD</strong>&orderby=title&order=asc&showposts=100');while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate=$post->ID;?> <li><?php the_title();?></li> <?php endwhile; ?>
How could I insert a custom field within that php code???
I tried this:<?php $post_title = get_post_meta($post->ID, 'post_title', $single = true); ?>
then inserting $post_title.
Didn’t work.
Forum: Fixing WordPress
In reply to: Using Shortcodes in themesBrilliant, thank you so much for helping me there!