Michael Fields
Forum Replies Created
-
Forum: Themes and Templates
In reply to: How to maintain 2 types of page template files ?cyborg,
This sounds like a job for a custom page template file. Documentation can be found here:http://codex.ww.wp.xz.cn/Pages#Creating_Your_Own_Page_Templates
I suggest that you copy all of the code from your theme’s page.php file and paste it into a new file which you will save in your theme’s directory. Then you will need to add the following to the top of the file:
<?php /* Template Name: Post by Post */ ?>Save this file and upload it to your server. Then, log into WordPress as admin and go to Manage -> Pages. Select the page that will display the list of post and scroll down until you see the “Page Template” section. Your new page template should appear in the dropdown list. Select it and save your page.
Hope this helps,
-MikeForum: Themes and Templates
In reply to: How do you choose the no. of posts displayed in search results?Steve,
Glad it helped you!
Plugin does look nice.
Will download and check it out.Forum: Themes and Templates
In reply to: How do you choose the no. of posts displayed in search results?Have you tried to use the query_posts() function before your loop in your theme’s search.php file?
The documentation is here:
http://codex.ww.wp.xz.cn/Template_Tags/query_postsYou should be able to use something like this before your loop:
<?php query_posts('showposts=20'); ?>Forum: Fixing WordPress
In reply to: continued 500 / htaccess problemI’m not an Apache expert, this is what my hosting company told me months back when I had the same issue… I just tried to set mine to 444 and wouldn’t let me… kept reverting back to 644. Have you tried calling your host???
Forum: Fixing WordPress
In reply to: continued 500 / htaccess problemhave you tried to change the permissions on your .htaccess? set it so that it is not writable by anyone. Should fix it.
Forum: Themes and Templates
In reply to: How to have friendly navigation linksif you are using permalinks, the following should work:
<?php bloginfo('url'); ?>/blog/Just be sure that you blog page has the proper slug set.
Forum: Themes and Templates
In reply to: Full Post Showing Where Only A Portion ShouldHad this same problem last week. The only thing that fixed it was to call the sidebar like this in the problematic template file:
include_once TEMPLATEPATH . '/sidebar.php';instead of using a template tag.
hope this helps
Forum: Themes and Templates
In reply to: Shortcodes don’t work in excerpts?xsreality,
in your loop, you could try the following code:<?php print apply_filters( 'the_content', $post->the_excerpt ); ?>Just a quick thought – not really tested, but I remember doing something similar to this in the past. I should also state that it is best practice to leave excerpts code free – like moshu suggested. Excerpts are used to build the data that gets inserted into you rss files and I have a seen a few plugins reek havoc on them.
Good luck
Forum: Everything else WordPress
In reply to: WordPress Meet-up / User-group (Portland, OR) ?Thanks the RoseCitySister for emailing me about Wordcamp Portland. Can’t wait to see what it’s like!!!
Forum: Themes and Templates
In reply to: Very basic question on how to modify templateAll the WordPress files *appear* to be stored on his server. The file is located exactly where you said it was:
http://erykbui.com/wp-content/themes/urban-stories-10/urban-stories-10/images/background_header.jpg
once you log in via ftp, navigate to the “web root” (usually a directory named ‘public_html’, ‘web’ or ‘www’) and then navigate through the directories like this:
/wp-content
/themes/
urban-stories-10/
urban-stories-10/
images/once in the “images” dir you should see: background_header.jpg
Upload the new file in place of it.
Forum: Themes and Templates
In reply to: Very basic question on how to modify templateThe easiest way that I know to change out an image ( on any website ) is to over write the file. My advice to you, would be to follow these steps:
- Backup the image at the url that you listed above.
- Create a new image that is the same size.
- Upload the image to the same directory as the backed-up image lives, give it the same file name and overwrite the original.
- Clear your browser cache
- Visit: http://erykbui.com/
Forum: Themes and Templates
In reply to: Questions about building a theme with multiple content areasYou could use the wp_postmeta database table to log the id of an uploaded image (much like a custom field). But in stead of using the custom fields interface, you could build your own that allows your user to click on an image to select it. Although I have never seen this kind of thing in the flesh before, I have been thinking about building it as recently as last night. Don’t know when I’ll get around to it though 🙂
If you find a ready -mase solution, please post it here.
Good luck!
Forum: Themes and Templates
In reply to: what centers the default theme? and how can i center mine?Try this:
- open header.php
- insert the following code right after the
<body>tag:<div id="wrap"> - open footer.php
- Insert the following code right before
</body>:</div> - open style.css
- remove
width 850pxfrom the body element - add the following code:
#wrap{ width: 850px; margin:0 auto; }This should fix the problem.
Forum: Themes and Templates
In reply to: Stray </style> TagI would look in your active theme in the following files:
header.php & functions.phpForum: Themes and Templates
In reply to: Problems with CSS paragraph spacingThis should so the trick:
p{margin-bottom:1em}