pcarlow
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Widget Logic] widget on the homepage called home.php<?php if($_SERVER['REQUEST_URI'] == '/') { ?> Do stuff on the home page... <?php } ?>
Forum: Plugins
In reply to: Customizable Post Listing – %post_excerpt% not displayingI having the same problem, except that all the excerpt Percent-substitution tags are displaying the excerpt from the current post, instead of the post in the %post_URL%
Trying to find a solution now…
Forum: Fixing WordPress
In reply to: Unable to post a topic with http linkDid some more searching around and I was able to fix it by creating an .htaccess file in the wp-admin folder with the following contents:
<IfModule mod_security.c>
SecFilterInheritance Off
</IfModule>More info on it can be found here:
https://www.ads-software.com/support/topic/117993?replies=53#post-560112Forum: Fixing WordPress
In reply to: Unable to post a topic with http linkHaving the same problem here. If i include a link in the post it won’t save. Was working fine last month.
Forum: Fixing WordPress
In reply to: How to check if Page exists?Just came here looking for the answer to this same question. Had to figure it out myself. Hope this helps:
<?php $name = $wpdb->get_var(“SELECT ID FROM $wpdb->posts WHERE post_name=’your-page-name'”); ?>
<?php if ($name != ”) { ?>
Do this
<?php } else { ?>
It doesn’t exist
<?php } ?>Forum: Fixing WordPress
In reply to: Weekly Archive Permalinksbump…
Forum: Fixing WordPress
In reply to: Capture a Function Argument as a PHP VariableIs there any easy way to get the category id? I don’t want to have to supply it. It needs to be dynamic. Thanks!
Forum: Fixing WordPress
In reply to: Making an Archive Listing<td valign=”top”>
Forum: Fixing WordPress
In reply to: Capture a Function Argument as a PHP VariableI came up with this silly solution:
<?php $count = wp_list_cats(‘recurse=1&optioncount=1’) ?>
<?php $new_string = ereg_replace(“[^0-9]”, “”, $count);?>
<?php echo $new_string ?>Only problem is if the category has a number in the name. There’s gotta be a better way…
Forum: Fixing WordPress
In reply to: Making an Archive ListingWhat’s wrong with the formatting? What exactly don’t you like about it or want to change?
Forum: Fixing WordPress
In reply to: Index.php not working after adding loopsI would try this:
<?php if (is_home()) { ?>
Do this if it’s the home page.
<?php }else{ ?>
Do this if it’s any other page.
<?php } ?>Forum: Fixing WordPress
In reply to: Text Alignment Issue – Bug or Theme Issue?This may sound obvious but did you close the tag?
Forum: Fixing WordPress
In reply to: Can this be done with categories in WPForum: Fixing WordPress
In reply to: Show at mostThank you Kafkaesqui, that plugin is a beautiful thing.
Forum: Fixing WordPress
In reply to: category link only showing first few posts!I’m looking for an answer to this question also. I have my ‘Show at most’ set to 5 because I only want five posts on the front page. In my Category and Monthly Archive it also shows only five posts. I want it to show every post in the Category and every post for that Month in the Archive. How can I do this?