MichaelH
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to know my worpress blog's urlOr just get a blog at http://wordpress.com
But if you decide you want to host your own site, then review http://codex.wordpress.org/New_To_WordPress_-_Where_to_Start
Forum: Fixing WordPress
In reply to: Show one specific post in the static front page<?php $yourpostid = 201; // <--- replace with your specific post id $args=array( 'p' => $yourpostid, 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 1, 'caller_get_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>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php the_content(); endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). ?>Related:
query_posts()
Stepping Into Template Tags
Stepping Into Templates
Template HierarchyForum: Fixing WordPress
In reply to: can't import database sqlMake sure your wp-config.php file is pointing to the correct
$table_prefixvalue.For instance if your database post table is called
wp123_poststhen in your wp-config.php file you should have$table_prefix = 'wp123_';Forum: Themes and Templates
In reply to: Single post when clicking on taxonomy termFrom my notes:
Redirect to post if tag page has only post
<?php if(is_tag() && $wp_query->found_posts < 2) { wp_redirect( 'http://someurl' ); exit; } ?>Forum: Plugins
In reply to: Export User List to Mail ChimpForum: Fixing WordPress
In reply to: Import mysql user talbe into wordpressSee Database Description…a new user gets added to wp_users and wp_usermeta holds certain data.
Forum: Plugins
In reply to: Custom Fields and Post Meta DataMight try
$posts[0]->IDForum: Everything else WordPress
In reply to: query of the WP database from non-WP .php pageTake a look at Integrating_WordPress_with_Your_Website and query_posts().
Forum: Plugins
In reply to: Omit posts from category with a certain tagSome plugins you might consider:
http://wordpress.org/extend/plugins/astickypostorderer/
http://wordpress.org/extend/plugins/just-one-category/Forum: Fixing WordPress
In reply to: How to know my worpress blog's urlIf WordPress is installed on your local machine then that would be something like:
Forum: Fixing WordPress
In reply to: Import mysql user talbe into wordpressUse phpMyAdmin to export your users as CSV then use something like http://wordpress.org/extend/plugins/csv-user-import/
Forum: Fixing WordPress
In reply to: custom field – FOR PAGE – remove key valueecho $review;Forum: Fixing WordPress
In reply to: custom field – FOR PAGE – remove key value<?php $review = get_post_meta($post->ID, 'review', true); if (review){ echo review; } ?>Forum: Themes and Templates
In reply to: include external php file in content page?Wouldn’t you need something like http://wordpress.org/extend/plugins/exec-php/ to do that?
Forum: Themes and Templates
In reply to: Adding an admin message on theme installyeah, take a look. Of course I don’t know how it’s done …
[oops didn’t see your last message before posting this]