double_dd
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Create Function – Multiple IFs return custom fieldsThanks Safeer that works perfectly.
Who knew it would be something so small!
Forum: Developing with WordPress
In reply to: Create Function – Multiple IFs return custom fieldsSo if all the conditions are true, you want to output 3 links?
Yep this is exactly what I want.
I’m a little confused what do you mean I need to concatenate for the last statement?
Could you copy my original code and edit to show what you mean?
Thanks!
Forum: Developing with WordPress
In reply to: Create Function – Multiple IFs return custom fieldsElse ifs don’t enable me to show all the if statements that are true though? I shouldn’t have to run through every combination of the 3 pairs having data or not to generate the function surely.
Forum: Fixing WordPress
In reply to: get the post thumbnail sizingUPDATE
It looks as though you can’t crop on the fly (or at least I couldn’t make this work).
So my code in my functions.php file is as follows:
add_theme_support( 'post-thumbnails' )//this adds thumbnail support; add_image_size( 'prevnextimage', 400, 300, true );//this adds a new image sizeIn my single.php file the code is as follows:
<?php $prevPost = get_previous_post('true'); $prevthumbnail = get_the_post_thumbnail($prevPost->ID, 'prevnextimage'); ?>I had to then use the regenerate thumbnail plugin here: https://wordpress.org/plugins/regenerate-thumbnails/
Forum: Themes and Templates
In reply to: Base Knowledge Theme Base Child CSSNow resolved:
Instead of this:
wp_enqueue_style( 'main-style', get_template_directory_uri(). '/style.css', false, '1.4', 'all');use this:
wp_enqueue_style( 'main-style', get_stylesheet_directory_uri(). '/style.css', false, '1.4', 'all');This then picks up the child theme instead of using the parent theme in the link to the stylesheet.
Forum: Plugins
In reply to: [Custom Post Template] WP Courseware Post TemplateI used a child functions.php file to load the plugin into the custom post type page using the directions on the plugion more info page
Forum: Fixing WordPress
In reply to: wp list pages with permalinksI was just about to re-post. Thanks for you help you’ve been great.
I’ve replaced that mass of code with
<?php wp_list_pages('child_of=16'); ?>simple really now I get it ha
Forum: Fixing WordPress
In reply to: wp list pages with permalinksEDIT – Thanks for the pointer. I’ve installed one of the plugins and I’m halfway there. I just need to get rid of the parent page from the list. Any ideas?
Forum: Fixing WordPress
In reply to: wp list pages with permalinksThanks for the quick response. I’m not sure where you’re pointing me to. One of the plugins as the other options don’t work?
Cool that’s all sorted!
Now, one last question (sorry for all this ha).
I’m really struggling to style the slideshow. I would like the whole slideshow centered on my page but currently it is aligned left. When I look in the CSS it says it’s inactive. I would also like to change the blue border to another colour and can’t find that either.
I’m struggling a bit!
My menu is a suckerfish menu with drop down. When I scroll over it the drop down goes behind the slideshow instead of on top of it. Is there a way to fix this? z-index on the slideshow div maybe?
thanks for your help – it’s all sorted! Now I’m going to try and style this bad boy!
I know that jquery.cycle.all.min.js isn’t being loaded so what I’ve done is put it in the footer.php as <?php jquery.cycle.all.min.js ?> is this correct?
Still doesn’t want to seem to work.
Forum: Fixing WordPress
In reply to: Widget Sidebar TroubleThat was it – Thanks very much alchymyth
Forum: Fixing WordPress
In reply to: Widget Sidebar Troubleahh I’ll try it now thanks