Michael Fields
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: another problem migrating to ww.wp.xz.cnJulie, It looks like you are try to import the images and your server is not allowing them to be written. I would log in via ftp and check to see if you have an “uploads” folder directly under /wp-content/. If you do, you can check the permissions in many ftp programs by right clicking on the folder. 777 works best for this directory. If you do not have the “uploads” folder, create it and set permissions to 777.
Filezilla is a decent, free ftp program.
Forum: Installing WordPress
In reply to: Blog main pageWhat exactly do you want to accomplish? The “Main Blog Page” is actually the end product of a couple thousand lines of code being executed. The index.php stored in your blog’s root directory just sets the process in motion. Depending on the theme you are using and how you have WordPress configured, a few different template files could be generating your “Main Blog Page” These file may be:
/wp-content/themes/your-theme/index.php
/wp-content/themes/your-theme/home.php
/wp-content/themes/your-theme/page.php
/wp-content/themes/your-theme/custom-page-template.phpHard to tell without more information.
Forum: Plugins
In reply to: Add txt file to root of all created directories in database?Do you have a link? Most likely, the links need to be changed in your menu.txt file. If the rest of the dynamically generated WordPress links are working properly, it might make sense to just copy the ones you need and paste them in.
Forum: Plugins
In reply to: Add txt file to root of all created directories in database?.htaccess is a bit of a pain to get used to mainly because of the use of regular expressions – which are like voodoo 🙂 The following link is pretty helpful for getting started:
http://www.addedbytes.com/apache/mod_rewrite-cheat-sheet/
Glad this worked for you.
Forum: Everything else WordPress
In reply to: Adding posts to pages other than the home page…Sure, I can IM… send my an email through my site http://mfields.org/
Forum: Themes and Templates
In reply to: break up date variable<span class="day"><?php the_time( 'D' ); ?></span> <span class="month"><?php the_time( 'M' ); ?></span> <span class="year"><?php the_time( 'Y' ); ?></span>Forum: Everything else WordPress
In reply to: Adding posts to pages other than the home page…Place the following code before The Loop in your theme’s index.php.
<?php if (is_home()) { query_posts("cat=4"); } ?>Forum: Themes and Templates
In reply to: Artisteer Templates and CodeHave you read this yet: http://codex.ww.wp.xz.cn/Using_Themes
Forum: Plugins
In reply to: Add txt file to root of all created directories in database?Oh yeah, Add it to you .htaccess file before any of the WordPress generated code
Forum: Plugins
In reply to: Add txt file to root of all created directories in database?Actually, I might be better at htaccess than I thought. Give this a try:
RewriteCond %{REQUEST_FILENAME} !-f RewriteRule menu.txt$ /menu.txt [L]Forum: Plugins
In reply to: Add txt file to root of all created directories in database?Not really, WordPress doesn’t really create directories, it just modifies a dynamic url to appear as a directory.
http://example.com?page_id=4Turns into
http://example.com/twinkies/But there is no physical directory one the server named “twinkies”. Messing with this part of the core is not really suggested. That being said, I can think of two very easy solutions to fix your problem:
1. Stop using permalinks.
2. Modify the flash script to use an absolute url: http://example.com/menu.txtForum: Fixing WordPress
In reply to: To create a page with a list of posts in itI just sent you an email to the address listed here: http://www.culturesinbetween.net/contact
Forum: Fixing WordPress
In reply to: To create a page with a list of posts in itIf I did that, the Articles pages won’t display all my recent posts. It displays a duplicate of my front home page. This is because I am using the custom theme I am using. I want it to show my posts one by one under each other which is what it isn’t doing.
Did you try it? I have done this on many blogs and it works like a charm. give it a try before you shoot it down.
Forum: Fixing WordPress
In reply to: To create a page with a list of posts in itFor the images, use the following code in the loop of your index.php file. It’s basically the same code found here with a bit of extras:
<?php $images = get_children( array( 'post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order' ) ); if ( $images ) { $count = 1; foreach ( $images as $id => $image ) { if( $count === 1 ) { $img = wp_get_attachment_thumb_url( $image->ID ); $link = get_permalink( $post->ID ); print "\n\n" . '<div class="alignleft"><a href="' . $link . '"><img src="' . $img . '" alt="" /></a></div>'; } $count++; } } print get_the_excerpt() . '<br /><a href="'; the_permalink(); print '">More</a><br class="clear" />' ?>Forum: Fixing WordPress
In reply to: Extra space BELOW title in text widget??Right on… First thing is you should read up on the loop. Just to gain a bit of understanding. Then read a bit about Template Tags. Once you read these documents, it should be really easy for you to switch the code…
Basically, There are tamplate tags which generate the following code in your blog:
<div class="entry-meta"> <span class="meta-start">Published</span> <div class="entry-author"><span class="meta-prep">by</span> <address class="vcard author"><a href="http://www.inkdryerdesign.com/blog/?author=2" class="url fn" title="View all posts by Chris">Chris</a></address></div> <div class="entry-date"><span class="meta-prep">on</span> <abbr class="published" title="2009-01-08T02:51:15-0700">January 8, 2009</abbr></div> <div class="entry-categories"><span class="meta-prep">in</span> <a href="http://www.inkdryerdesign.com/blog/?cat=1" title="View all posts in Uncategorized">Uncategorized</a></div><span class="meta-end">.</span> <a href="http://www.inkdryerdesign.com/blog/?p=210#respond" class="commentslink" title="Comment on The Snowbed">0 <span>Comments</span></a> </div> <!-- .entry-meta -->The short answer is to move everything between
<div class="entry-meta">and<!-- .entry-meta -->below the “the_content()” template tag. Will will most likely have to do this in more than one file.