Michael Fields
Forum Replies Created
-
Forum: Plugins
In reply to: How can wordpress TOC appear automatically on old html pages?Provided that you included “TOC” files are of the php variety, a simple solution can be found by adding the following code to the begining of you TOC files:
require('./wp-blog-header.php');This will load wordpress making all of it’s functions available to you. Now you can use anything that you like:
wp_list_pages(); wp_get_archives(); php wp_list_categories(); php wp_list_bookmarks();If your included are of the html variety, the best option might be to make new TOC files with a php extension and then use mod_rewrite to route requests.
Forum: Fixing WordPress
In reply to: how to put blogroll in individual/static pageI use a custom page template to make my “blogroll” appear on it’s own separate page. What I would suggest that you start with is to log into WordPress. Create a new page called links and under “Attributes” -> “Template” see if there is an option for links in the dropdown.
If there is not. I suggest that you copy the links template from the WordPress default theme and adjust it to match your theme.
Hope this helps,
-MikeForum: Installing WordPress
In reply to: Do I need an SSL to use WordPress?Nope, I don’t have an ssl and it runs fine. Please see the following link for detailed information about what to seek out in a hosting provider:
Forum: Themes and Templates
In reply to: Problems with TemplateAs far as I know, you can’t. WordPress comes with a bunch of widgets on the left hand side of the “dashborad/appearance/widgets” screen. You can add those to the right hand side of the screen and make the widgets appear in your theme. You will most likely find the same items that were originally on your sidebar in this list of “factory installed” widgets. One of the benefits of using widgets is that you can modify most ( if not all of your sidebar ) from the wp-admin without having to touch a bit of html-css-php.
Forum: Themes and Templates
In reply to: Suppressing the previous and next blog post titlesYou can try altering the functions that print the links like this:
<div class="alignleft"><?php previous_post_link('« %link', 'Previous' ) ?></div> <div class="alignright"><?php next_post_link('%link »', 'Next' ) ?></div>This way you won’t loose the functionality, which IMO is very helpful with blogs. If you really want the links gone, you can just delete these lines from your themes single.php file.
Unfortunately, a css solution will be based on whatever theme you are using.
Forum: Plugins
In reply to: PHP function file_exists problemsThe path may not be correct if you are using permalinks. you might try to use the ABSPATH constant. Example:
<?php file_exists( ABSPATH . /wp-content/image_thumbs/thumbname.jpg ); ?>Forum: Everything else WordPress
In reply to: Manually Publishing PostsYou would have to set “post_status” to “publish” and (if using permalinks) you will want to set a “post_name”. This can be created by running the “post_title” through the
sanitize_title_with_dashes()function.Forum: Fixing WordPress
In reply to: How to insert photos properly1. put you cursor in the text where you want the image.
2. Open the Media Box thingy.
3. navigate to the image that you want to add to your post.
4. Under alignment, choose left.
5. Click “Insert Into Post”.This will only work if your theme supports WordPress’ built in image alignment css classes. While most themes should support this code, not all do. If you find that you have followed the steps above and have not had the results you are looking for, you can try to add the following code at the bottom of your theme’s style.css file:
img.centered { display: block; margin-left: auto; margin-right: auto; } img.alignright { padding: 4px; margin: 0 0 2px 7px; display: inline; } img.alignleft { padding: 4px; margin: 0 7px 2px 0; display: inline; } .alignright { float: right; } .alignleft { float: left }Best of luck,
-MikeForum: Fixing WordPress
In reply to: Inserting post from outside wp – works, kind of … help?As far as I know the post_category database column is no longer in use. WordPress now uses 3 tables to deal with categories:
wp_terms
wp_term_relationships
wp_term_taxonomyI used your code exactly as you wrote it and it inserted a new post and (due to the fact that I do not have a category with an ID of 4) it created a new category named 4 with an ID of 68.
Everything looks good to me with the code in 2.7
Forum: Fixing WordPress
In reply to: .htaccess causing 500 internal sever error, INSPIRATIONS??Maybe:
Options +FollowSymLinks RewriteEngine on RewriteRule ^downloads/([A-Za-z0-9-]+)/?$ wp-content/plugins/download-monitor /download.php?id=$1 [L]Just a thought, hope this helps:)
Forum: Themes and Templates
In reply to: Artisteer Templates and CodeNot really experienced with using Artisteer at all. Sorry but this second question is out of my range of knowledge.
Forum: Themes and Templates
In reply to: How to include the header/sidebar footer in this php fileexcuse me?
you are rude.
please read the forum rules especially section A-4 before posting.Just because my solution did not word for you does not mean that it is a “Bad replies, no solution”.
Just because you cannot find a solution to your commerce problem does not mean that a questions regarding commerce should be “well documented in the codex”…. please remember that WordPress is blogging software.
Just because you have poor taste does not give you the right to criticize my advice. Case in point “don’t reply with crap…”. This is the rudest thing that could possibly be said to me here… you are mean and have hurt my feelings. I hope you are happy 🙁
Forum: Installing WordPress
In reply to: Blog main pageThe problem is (most likely) definitely on your server… When I visit your install directory: http://thecomingdays.com/wordpress/ I should be served the index.php file, but I do not get this file, I get a listing of your /wordpress/ directory. Don’t know why this is happening, but it most likely has to do with your server settings -> which is proved by the fact that I can also visit: http://thecomingdays.com/wordpress/wp-content/ and I can see a directory listing…. -> WordPress automatically installs an index.php file in this directory and it is not being “read” by your server.
I believe this problem to be to be that of the server and not a problem of WordPress at all… If I were an Apache expert, maybe I could help, unfortunately, I am not.
Forum: Installing WordPress
In reply to: Blog main pagevery strange. It appears that your server is not configured to use “index.xxx” as the default page when accessing a directory. I would contact your server company to see what you should do. You might need to rename index.php to default.php or something like that.
Forum: Fixing WordPress
In reply to: how to enable thumbnail formatThis is because you image settings (in WordPress) are larger than the file you uploaded which is very small (100px X 71px). To get these options to be enabled, you will need to upload a larger image. If you want to adjust the default image settings in WordPress, Just log in and go to Settings -> Media.