wyrd33
Forum Replies Created
-
Forum: Plugins
In reply to: How to avoid IE headache in #page div?You can position the #page div seperately for IE and all other browsers.
/* For FF/Opera/etc */
body > #page
{
}/* For IE */
#page
{
}This will allow you to fix IE stupidity while not altering the design on other browsers.
Forum: Everything else WordPress
In reply to: why not host forum on phpBB?Honestly it probably would be if they used vBulletin or another heavy duty forum with all the bells and whistles. But I think they’re using these forums because the people behind WordPress also built the forums.
Forum: Plugins
In reply to: Two Sites, Two Themes, One Database (Same Content)Easiest way to do this would be to build the site using a generic XHTML base, then dynamically use a CSS file based on the domain the user is viewing. You should be able to do this fairly easily with a few PHP commands. I’d try parse_url() : https://us2.php.net/manual/en/function.parse-url.php
Forum: Everything else WordPress
In reply to: wordpress vs cms solutions?Honestly it depends on what you’re looking to do. If it’s just a simple web site with a few static pages, then WordPress will get the job done. If not, I’d take a look at Joomla. If you are more technically skilled, I’d probably go with Drupal. Drupal is probably the most flexible with what it can do, but that flexibility comes at a cost of complexity.
Forum: Fixing WordPress
In reply to: How easy to setup WP as CMS?You can use pages and child pages to set this up (assuming I’m reading it right). For your page navigation you can use this to only display the first set of parent pages:
<?php wp_list_pages(‘title_li=&depth=1’ ); ?>
Then in your page template, you can list child pages for that page like so:
<?php if ($subpages = wp_list_pages(‘title_li=&depth=1&echo=0&child_of=’.$post->ID)) : ?>
<h1>Subpages</h1>-
<?php echo $subpages; ?>
<?php endif; ?>
Forum: Fixing WordPress
In reply to: Trouble using the HTML PRE tagAs the above poster said, go into your user profile and turn off the fancy editor (option at the bottom of the profile, it’s a checkbox).
Forum: Themes and Templates
In reply to: Controlling form elementsTry both padding and margin 0, then specify the width.
Forum: Themes and Templates
In reply to: Adding nav column in defualt template<?php get_sidebar(); ?>
Forum: Fixing WordPress
In reply to: What’s the opposite of “get”?The exclamation point means “not”. Basically what if (!is_search()) is saying is: if NOT is_search, then do this. So in other words, only show the calendar if the page is not a search result.
Forum: Fixing WordPress
In reply to: What’s the opposite of “get”?<?php if (!is_search()) { get_calendar(); } ?>
Forum: Plugins
In reply to: Displaying category descriptions?Hmm.. I’m actually quite surprised to not find a function that gives you an array of category objects based on what you specify. I guess I’ll have to make a function based on wp_list_cats() and just return the category array.
Forum: Plugins
In reply to: Displaying category descriptions?See if this is of any help: https://codex.www.ads-software.com/Template_Tags/category_description
Forum: Fixing WordPress
In reply to: Keeping Line breaks – Is there a fix?!?!?I believe the WP filters are whats doing it. You should be able to disable any filter, it’s just a question of finding which one is removing the extra break lines.
If I had to guess, it’d be wpautop. So to disable it, throw this inside your template’s funtions.php:
remove_filter(“the_content”, “wpautop”);
wpautop can be found in functions-formatting.php, line 57. For other filters that WP uses, take a look in default-filters.php and kses.php line 523. All filter functions (with the exception of kses) can be found in functions-formatting.php.
Hope this helps.
EDIT: Oh, and don’t use the rich text editor. It does more filtering which I don’t believe you can disable without hacking WP core code. Maybe I’m wrong, but the rich text editor seems to have the following filter, and I don’t see a way to disable it:
function wp_richedit_pre($text);
functions-formatting.php, line 1006.
Forum: Fixing WordPress
In reply to: Earliest post on top in category archives?Doing some further research, I believe you can use a typical category.php (for your Category Template), then at the top (before your WordPress loop), use the WP_Query object to specify a new order. I haven’t tested, but I believe you would do it like so:
$wp_query->set(“order”, “ASC”);
More info here:
https://codex.www.ads-software.com/Function_Reference/WP_QueryForum: Fixing WordPress
In reply to: Earliest post on top in category archives?Is this what you’re looking for?
https://codex.www.ads-software.com/Category_Templates