MichaelH
Forum Replies Created
-
Forum: Themes and Templates
In reply to: wp_query ordered by post ID but not dateNope it’s my fault. That should read:
'orderby'=> 'ID',Note the capitalization of ID
<?php $args=array( 'category__not_in' => 1, 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => -1, 'orderby'=> 'ID', 'order' => 'desc', 'ignore_sticky_posts' => 1 ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php echo 'post id: ',$post->ID; endwhile; } ?>Forum: Installing WordPress
In reply to: How to Reinstall WordPressClick on Download tab at top of this page, then click on Release Archive.
Just restore the 3.1.4 files and don’t worry about the database.
Forum: Installing WordPress
In reply to: Installing WordPress On a Windows Server not localhostIf your host meets the requirements you should be able to install WordPress.
But will direct you to:
Installing_on_Microsoft_IISForum: Themes and Templates
In reply to: wp_query ordered by post ID but not dateAre you sure you are putting the code in the proper place? Do you see the ‘post id: 123’ or whatever displayed?
Forum: Fixing WordPress
In reply to: modified the URL for your WordPress applicationConsider using phpMyAdmin to make sure your
wp_optionstable has the correct values insiteurlandhome.siteurlis your WordPress address (URL) andhomeis your Site Address (URL).Once your blog is back working:
To make WordPress available at http://www.youthefans.com in Settings->General, change the Site address (URL) to http://www.youthefans.com and put this index.php file in your web-root folder (it is the same folder that contains the wordpress folder)
<?php /* Short and sweet */ define('WP_USE_THEMES', true); require('./wordpress/wp-blog-header.php'); ?>Then update your permalinks by visiting Administration > Settings > Permalinks and clicking on Save Changes.
Forum: Fixing WordPress
In reply to: Temporarily 'Switch off' Users?Good point. How about putting an x in front of there email address AND changing their password. I know lame.
Otherwise consider a subscription management plugin.
Forum: Fixing WordPress
In reply to: Template: how to show paginated posts?You need to check the paged query var…example:
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts($query_string.'&posts_per_page=5&paged=' . $paged); ?>Forum: Fixing WordPress
In reply to: Temporarily 'Switch off' Users?What about just changing their password and when they renew give them a new password?
Forum: Themes and Templates
In reply to: wp_query ordered by post ID but not dateThis worked for me though I’m excluding category 1 and displaying all posts per page:
<?php $args=array( 'category__not_in' => 1, 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => -1, 'orderby'=> 'id', 'order' => 'desc', 'ignore_sticky_posts' => 1 ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php echo 'post id: ',$post->ID; endwhile; } ?>Forum: Themes and Templates
In reply to: How to make my post titles linked to its pagesTry changing to the WordPress Default theme.
If you continue this thread, please report a link to download the theme you are using.
Forum: Fixing WordPress
In reply to: pointing my domain to the correct databaseYou would need to install the WordPress files in the ‘webroot’ of each of those domains. By webroot, I mean /jason or /kapture. So your /jason folder would have the wp-admin, wp-content, wp-includes folder for the WordPress install for that site.
Just as a note, you don’t really point a domain to a database, you specify what database gets used in the wp-config.php file for each WordPress install. In theory, all your WordPress installs could use the same database as long as you set a different $TABLE_PREFIX in each of your wp-config.php files.
Forum: Themes and Templates
In reply to: Adding Custom PHP page.Might look at:
http://wordpress.org/extend/plugins/shortcode-exec-php/Forum: Fixing WordPress
In reply to: What is the Best Backup optionSee if you like:
http://wordpress.org/extend/plugins/backwpup/For all databases, all files, might need to create your own cron entry and script…example:
http://www.ngcoders.com/php/php-automatic-file-and-database-backup-scriptForum: Plugins
In reply to: Custom field for each postWell if you don’t find a plugin you could use this in your theme’s apppropriate template file:
<?php $moretext = get_post_meta($post->ID, 'more_text', true); if ( ! $moretext ) { $moretext = 'Read the rest of this entry »'; } the_content($moretext); ?>Just create a custom field called more_text on the posts where you want a specific “more”. If there is no custom field call “more_text” then the code will cause
'Read the rest of this entry »';to be used.Forum: Fixing WordPress
In reply to: Where should i copy Google Analytics Code?Might consider using a plugin such as
http://wordpress.org/extend/plugins/google-analytics-for-wordpress/Please note I deleted your duplicate topic.