g3legacy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: wordpress child pages don't show on hover for non membersHow are you calling the menu? Can you post the PHP..
Forum: Fixing WordPress
In reply to: Custom Admin Menu Causing ErrorsNot sure, but this looks like a possible mistake for your icon argument;
''. bloginfo('template_url') .'/theme-options.png'
Forum: Fixing WordPress
In reply to: wordpress child pages don't show on hover for non membersHi, maybe your child pages are set to private?
Dan
Forum: Fixing WordPress
In reply to: WP_Query with custom taxonomies and post types…!Thanks for the pointer – silly me!
I need to figure out how to add my “hidden” taxonomy in the query now. Oh, the woes of PHP. Good fun when it goes well, despair when it doesn’t ??
Forum: Fixing WordPress
In reply to: WP_Query with custom taxonomies and post types…!The post type is made in a plugin file, but that’s all working as it should be. The query is in a template file;
$args = array( 'post_type' => 'pt_plumbers', 'tax_query'=>array( array( 'taxonomy'=>'trade', 'field'=>'slug', 'term'=> 'boiler-installation' ) ) ); $plumber_tax = new WP_Query($args); print_r($plumber_tax); if($plumber_tax->have_posts()){ while($plumber_tax->have_posts()){ $plumber_tax->the_post(); the_title(); } }
Forum: Fixing WordPress
In reply to: WP_Query with custom taxonomies and post types…!I’ve read the codex page again, and it looks like you’re right! Sadly it still finds no posts. Just to make sure I understand this…
– My custom taxonomy is called “trade”
– One of my terms/categories under trade is “boiler-installation”
– I’m querying using the slug.That sounds simple enough so what am I doing wrong?
Forum: Fixing WordPress
In reply to: How to allow users to choose # of posts to displayI would look up some info on $_POST. You should be able to send the value using a form like you’ve written. When loading the page i’d do an IF statement and see if $_POST[‘your_var’] has a value, if it does, parse it to the query_posts like this query_posts(‘posts_per_page=$your_var’); – or that’s the general idea I have in my mind haha.
Forum: Fixing WordPress
In reply to: How to allow users to choose # of posts to displayWell, personally I’d start with a default number of posts and have the drop down available. If the user selects a value and hits “submit” you could parse the value to the query and reload the page. I’m not 100%, I’m not a serious developer, but I think I could do this ok using this method. Have you used query posts at all? Query posts modifies the main loop on a page, this for example “query_posts( ‘posts_per_page=5’ );” means only 5 posts will show in the loop.
Forum: Fixing WordPress
In reply to: How to allow users to choose # of posts to displayHow do you envisage it working? You could parse a value to a wp_Query or query_posts that the user selects from a drop down list or radio buttons?
Forum: Fixing WordPress
In reply to: Issues with uploading images – a problem with permissions?ahem…same error message – I have tried making another folder as well as pointing WP to the folder like you suggested. No luck at all.
Is this 100% a permissions issue?
Forum: Fixing WordPress
In reply to: Issues with uploading images – a problem with permissions?Yep, done that….for some reason it’s made no difference.
Forum: Fixing WordPress
In reply to: Issues with uploading images – a problem with permissions?The root of the site is httpdocs… I wonder if that’s the problem…
Forum: Fixing WordPress
In reply to: Issues with uploading images – a problem with permissions?Hi, get this error;
“The uploaded file could not be moved to /home/httpd/vhosts/neilanwilliams.co.uk/httpdocs/property/wp-content/uploads.”
Forum: Fixing WordPress
In reply to: how to test for wp_nav_menuGreat ?? I’m pleased I helped someone!
Forum: Fixing WordPress
In reply to: Javascript on pageHi, I have never used an iFrame so I have no idea…
Can I see a link to the page your trying to fix?
Have you tried putting this javascript in your theme somewhere?
Dan