Thanks Vagrant I know that part but how to I set the number of posts via a widget option? $options['number'];?>
I’m trying to develop a widget for the popular posts tutorial here http://bavotasan.com/tutorials/how-to-list-your-most-popular-posts-in-wordpress/
I’m not sure how to replace the $num variable in functions.php with
$options['number'];?> which let’s you pick the number of posts to list. I would think that the best way is to incorporate the entire function into the widget but I’m not sure how.
Can someone please help?
Thanks for the comments! I agree not to use most ads but a hosting might be ok as the theme buyer might look for hosting as well.
Just curios.. are authors allowed to use real affiliate banners or ads in theme previews?
Thanks, I know for sure that a listing system can be created but I’m not so sure if a login system for clients so they can list as well can be done. Not sure if anything like that is limited by Wordpress.
Do you think that something like http://www.trulia.com/ can be applied on a Wordpress powered site?
Thanks for the reply! That doesn’t seem to work either
I guess I’ll just use arrays. I was hoping to achieve it with the more minimal function reference.
Thanks for the suggestion! I’m using the Wordpress meta box function reference as the frame work
http://codex.wordpress.org/Function_Reference/add_meta_box
It contains the code you provided but it still doesn’t work..
Maybe I should use arrays?
So I’m trying to create a meta box checkbox but I can’t get it to function..
the code I’m using is
echo '<label for="myplugin_new_field">' . __("Description for this field", 'myplugin_textdomain' ) . '</label> ';
echo '<input type="checkbox" name="myplugin_new_field" id="myplugin_new_field" value="yes"';
if ( get_post_meta('myplugin_new_field', true ) == "yes" )
echo ' checked="checked"';
echo '" style="width: auto;" />';
}
The checkbox appears in edit post pages without any errors. I check it but after I update the post it becomes unchecked.
Not sure what I’m doing wrong here.. will appreciate any kind of guidance!
