stonedeft
Forum Replies Created
-
Forum: Plugins
In reply to: get_post_meta with query_post functionSince I am using this code inside a plug-in file I should globalize $post so I can get the value of $post->ID
<php? query_posts('category_name=videos'); while (have_posts()) : the_post(); echo get_post_meta($post->ID, 'videoThumb', true); endwhile; ?>other way to do it is with wp_query
<?php
$my_query = new WP_Query(‘cat=4’);
while ($my_query->have_posts()) : $my_query->the_post();
global $post;
echo get_post_meta($post->ID, ‘videoThumb’, true);
endwhile; ?>Cheers!!
Forum: Fixing WordPress
In reply to: wp_insert_post doesn’t insert data for added columnsHmm no reply… anyway I just used custom fields under post meta cheers!
Forum: Plugins
In reply to: WP-Polls WidgetHello I installed the plugin created a poll, put the poll in mysidebar, the poll is showing, however when I tested it, it doesn’t work, IE8 throws a javascript object expected error. I have NextGen Gallery installed, do you think the two plugins isn’t compatible with each other?
Forum: Fixing WordPress
In reply to: Template File QuestionDon’t bother I got it, it’s the archive.php, I didn’t realize that there is an archives.php and an archive.php on the template folder.
Forum: Fixing WordPress
In reply to: Path to themes.I’ll check out those links many thanks
You look great !
Forum: Fixing WordPress
In reply to: Path to themes.Thanks iridiax I did it like this:
`echo’ <img src=”‘;
bloginfo(‘template_directory’);
echo ‘/images/spiel.jpg” />’;`Though wishing the bloginfo() function will return the values and not echo it so I can just do it like this:
echo '<img src="'.bloginfo('template_directory').'/images/speil.jpg" />';Maybe I can make another function from the bloginfo() function that will return the value and not echo it. Another Question: which file in wordpress is the bloginfo() function located?
I am currently using this:
function getThemeURL(){ $p = 'http://'.$_SERVER['HTTP_HOST'].'/wp-content/themes'; return $p; }Thanks. Please bear with me this is my first WP site still figuring out hooks and stuff…
Forum: Fixing WordPress
In reply to: Path to themes.Thanks for the reply however:
<h1><?php bloginfo('name'); ?></h1>Will display the blog name
<p>Character set: <?php bloginfo('charset'); ?> </p>Will Display the Charset and
<p><?php bloginfo('description'); ?> </p>Will display the description… uhmm which one will display the path? please help.
Also I see auto update will overwrite my edits OMG how can I disable auto updates?
Thanks
Forum: Fixing WordPress
In reply to: Path to themes.This seems ok but I need a better solution in case I plan to change themes later:
echo'<img src="http://'.$_SERVER['HTTP_HOST'].'/wp-content/themes/default/images/spiel.jpg" alt="Recent Posts"/>';