Kristoff1875
Forum Replies Created
-
Forum: Plugins
In reply to: [Fast Secure Contact Form] Allowing space in telephone field?@torres65 Doesn’t work i’m afraid, doesn’t even allow normal numbers.
@mbrsolution haven’t asked there, will post now. Cheers
Forum: Plugins
In reply to: [Fast Secure Contact Form] Allowing space in telephone field?Doesn’t work unfortunately.
Forum: Plugins
In reply to: [Download Monitor] Custom "No access" page?Ok cheers buddy.
Forum: Plugins
In reply to: [Download Monitor] Custom "No access" page?Thanks Barry.
For now is there a workaround? Could you tell me where the message is currently generated so I can look at modifying it? I would of course share my results with you if it may help in implementing it in future versions.
Forum: Hacks
In reply to: Filter posts by 2 parent categories?Ignore that. Success!
Forum: Hacks
In reply to: Filter posts by 2 parent categories?I kind of have it working with the following:
<li id="categories"> <h2><?php _e('Categories:'); ?></h2> <form action="<?php bloginfo('url'); ?>" method="post"> <div> <?php wp_dropdown_categories($args); ?> <?php wp_dropdown_categories($args1); ?> <input type="submit" name="submit" value="view" /> </div> </form> </li>
And then:
if (($_POST['cat']) !== '-1' && ($_POST['cat2']) !== '-1') { $query = new WP_Query(array('category__and'=>array($_POST['cat'], $_POST['cat2']))); } else if (($_POST['cat']) == '-1' && ($_POST['cat2']) !== '-1') { $query = new WP_Query('cat='.$_POST['cat2']); } else if (($_POST['cat']) !== '-1' && ($_POST['cat2']) == '-1') { $query = new WP_Query('cat='.$_POST['cat']); } else { $query = new WP_Query('cat=10'); }
I have 2 dropdown boxes and the results get sent through. The only issue that i’ve got at the moment is that this is on the category page, and if you don’t choose the first dropdown, it chucks you to the main post page.
Ideally, I want this to be on the page that you land on when you click posts. My posts aren’t on the homepage and are on a designated page in the options, homepage is static. Then I have another page i’ve set with a custom template to show posts. However, the code doesn’t seem to be taking affect on this page… Could you maybe point me to where i’m going wrong? From what I can see, i’ve chosen the custom template in the page settings and i’ve chosen the page in reading settings…?
Forum: Hacks
In reply to: Filter posts by 2 parent categories?Thanks for this, would that also work if cata wasn’t selected for example? Would it just see it as a null value and search based on catb?
Forum: Plugins
In reply to: [Fast Secure Contact Form] Require a field is empty…?I’ve sussed it, for anyone else who needs it:
Validation regex = (?=)
Then both css: “display:none”
Forum: Hacks
In reply to: Send some values from WP Post to second database on submission?Does anybody have a clue about this?! :-/
Forum: Fixing WordPress
In reply to: I know it's been done, but hiding a category…Sorted with
if ($cat->name !== 'Blog') {
Cheers
Forum: Fixing WordPress
In reply to: I know it's been done, but hiding a category…Right, this is the code i’ve got. Am currently looking at the foreach bit trying to figure out what to change!
<?php get_header(); /* template name: Portfolio */?> <div id="container"> <div id="content"> <?php the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <h1 class="entry-title"><?php the_title(); ?></h1> <div class="portfolio-content"> <?php // get all the categories from the database $cats = get_categories(); // loop through the categries foreach ($cats as $cat) { // setup the cateogory ID $cat_id= $cat->term_id; // Make a header for the cateogry echo "<h2>".$cat->name."</h2>"; // create a custom wordpress query query_posts("cat=$cat_id&post_per_page=100"); // start the wordpress loop! if (have_posts()) : while (have_posts()) : the_post(); ?> <?php // create our link now that the post is setup ?> <div class="portfolioholder"> <a href="<?php the_permalink();?>"><?php if (class_exists('MultiPostThumbnails')) : MultiPostThumbnails::the_post_thumbnail(get_post_type(), 'secondary-image'); endif; ?><br/><?php the_title(); ?></a> </div> <?php endwhile; endif; // done our wordpress loop. Will start again for each category ?> <?php } // done the foreach statement ?> <div class="clear"></div> </div><!-- .entry-content --> </div><!-- #post-<?php the_ID(); ?> --> <?php if ( get_post_custom_values('comments') ) comments_template() // Add a custom field with Name and Value of "comments" to enable comments on this page ?> </div><!-- #content --> </div><!-- #container --> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: I know it's been done, but hiding a category…I’m being a duche sorry. I’ve been trying to edit the wrong bloody file! Will report back when i’ve attempted the right file!!! Fail!