Edit the Publish Widget Options

I think you should use the post_submitbox_misc_actions add_action( ‘post_submitbox_misc_actions’, ‘publish_in_frontpage’ ); function publish_in_frontpage($post) { $value = get_post_meta($post->ID, ‘_publish_in_frontpage’, true); echo ‘<div class=”misc-pub-section misc-pub-section-last”> <span id=”timestamp”>’ . ‘<label><input type=”checkbox”‘ . (!empty($value) ? ‘ checked=”checked” ‘ : null) . ‘value=”1″ name=”publish_in_frontpage” /> Publish to frontpage</label>’ .'</span></div>’; }

How does one programmatically manage posts from a external php script?

You can remotely create posts programmatically via XML-RPC e.g. PHP http://www.nickycakes.com/post-to-wordpress-remotely-with-xmlrpc-in-php/ Java http://code.google.com/p/wordpress-java/ Of note, the media library handles image EXIF data etc, it might be more convenient to switch from using posts to just displaying the latest uploaded attachments that do not have a parent post (attachments with a parent post are attached to … Read more

Unable to get posts with category on my page

add in standard WordPress post specific template tags here eg. the_title(), the_permalink, the_content, the_excerpt etc. endforeach; Like that comments says, call the function you need to display the title. The category argument appears to represent the category ID, not the slug. Try using category_name instead. [php] $myposts = new WP_Query(‘posts_per_page=5&category_name=basics’); while($myposts->have_posts()): $myposts->the_post(); // your output … Read more

.htaccess on multisite and roots theme?

well, I have both roots and multisite. However, I do not have roots specific rewrite rules. I have the vanilla rewrite rules defined in the docs. I use the ones for subdomains instead of subfolders. RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond … Read more

Save Option on Database

<?php add_option( $option, $value, $deprecated, $autoload ); ?> http://codex.wordpress.org/Function_Reference/add_option global $options; ?> <form action=”options.php” method=”post”> <?php $settings = get_option(‘options’); ?> <?php settings_fields(‘theme_options’); ?> <fieldset> <legend>Counter Position:</legend> </br> <p> Right <input type=”radio” name=”position” value=”right”/> <p> Left <input type=”radio” name=”position” value=”left”/> <p> Center <input type=”radio” name=”position” value=”center”/> </fieldset> </form> <?php function r_set() { register_setting(‘theme_options’, ‘options’, ‘validate_options’); } … Read more

Vote It Up Plugin – Add ascending numbers to MostVotedAllTime Chart Function

Use this: function MostVotedAllTime_Widget() { $a = SortVotes(); //Before ?> <div class=”JibbleChart”> <div class=”title”>Most Recommended Albums</div> <?php $rows = 0; //Now does not include deleted posts $i = 0; while ($rows < get_option(‘voteiu_widgetcount’)) { if ($a[0][$i][0] != ”) { $postdat = get_post($a[0][$i][0]); if (!empty($postdat)) { $rows++; if (round($rows / 2) == ($rows / 2)) { … Read more