jhkb
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Galleria WP] Conflict with WPGThis is the error message I get:
Uncaught TypeError: Object #<Object> has no method ‘nivoSlider’
Forum: Plugins
In reply to: [Plugin: WP-PageNavi] Custom query on category.phpOk found my problem! Realised I didn’t even need to use a custom query (was only setting the category and posts per page), so created a taxonomy template and set the posts per page in the reading settings and all is well. My homepage is a series of custom queries anyway so the reading settings won’t interfere with that.
Forum: Plugins
In reply to: [Plugin: WP-PageNavi] Custom query on category.phpAnyone?
Forum: Fixing WordPress
In reply to: Shortened automatic excerpt outside the loopHere is one of the loops: http://pastebin.com/MdwruHXh
and my functions.php: http://pastebin.com/GetnxhnX
This is using the second method from transformationpowertools.com. Thanks.
Forum: Fixing WordPress
In reply to: Shortened automatic excerpt outside the loopI’m just left with empty markup, which I’ve got around the tag. I’ve pasted the function that you have in pastebin and used get_my_excerpt(20, 69); for the post i’m testing it with, but no joy.
Either way I’m not sure that is going to work if I have to put the post id in every time. I’m using a set of ‘mini loops’ that pull through the 5 most recent posts in each category so need it as automated as possible.
I have the solution above that sort of fits my needs, I just need to make sure there’s a written excerpt for all posts, so it’s no problem if there’s not an easy solution for generating automatic ones.
Thanks anyway.
Forum: Fixing WordPress
In reply to: Shortened automatic excerpt outside the loopHi, thanks for the suggestion – I found that post whilst searching for an answer and unfortunately it doesn’t work either. Not sure why it just returns an empty tag.
Also tested my plugins and theme they don’t seem to be causing a problem, should the_excerpt display an automatic excerpt outside the loop if there’s no manual text given? I had thought not?
The closest I’ve found is this function which allows the manual excerpt to be shortened wherever it’s displayed: http://www.transformationpowertools.com/wordpress/automatically-shorten-manual-excerpt
This might just be a little over my head perhaps…
Forum: Fixing WordPress
In reply to: Excerpt length outside the loopThanks for the link to your article, looks good, but is there anyway to show an auto-generated excerpt (then shortened) on the homepage?
I also added a similar comment to your article, but thought someone here might also know if it’s possible.
Thanks
JessForum: Themes and Templates
In reply to: Pagination on category.php with custom loopAh, didn’t realise – sorry. Here’s the link: http://pastebin.com/CGd47tD3
Any help would be really appreciated, thanks.
Forum: Plugins
In reply to: [Firelight Lightbox] PDF not working and overlay not closing.Ah I see, thanks I’ll try and contact them. When that plugin is deactivated it does the trick.
The chrome plugin for pdf’s still seems to be overriding fancybox, but that isn’t a massive issue. In firefox the overlay is working for the pdf’s (and closing properly) but there’s just a white box showing, no PDF. Is it likely this is the same issue?
Forum: Plugins
In reply to: [Firelight Lightbox] PDF not working and overlay not closing.Do you mean the final rendered page source?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href='http://fonts.googleapis.com/css?family=Droid+Serif' rel='stylesheet' type='text/css'> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Press | The Little Wedding Helper</title> <link rel="shortcut icon" href="favicon.ico" /> <link rel="icon" href="/favicon.ico" type="image/x-icon" /> <link href="http://localhost:8888/lwh/wp/wp-content/themes/lwh/style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-16239767-5']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <link rel="alternate" type="application/rss+xml" title="The Little Wedding Helper » Press Comments Feed" href="http://localhost:8888/lwh/wp/press/feed/" /> <link rel='stylesheet' id='admin-bar-css' href='http://localhost:8888/lwh/wp/wp-includes/css/admin-bar.css?ver=20110325' type='text/css' media='all' /> <link rel='stylesheet' id='easy-fancybox.css-css' href='http://localhost:8888/lwh/wp/wp-content/plugins/easy-fancybox/easy-fancybox.css.php?ver=1.3.4' type='text/css' media='screen' /> <link rel='stylesheet' id='contact-form-7-css' href='http://localhost:8888/lwh/wp/wp-content/plugins/contact-form-7/styles.css?ver=2.4.5' type='text/css' media='all' /> <link rel='stylesheet' id='wp-paginate-css' href='http://localhost:8888/lwh/wp/wp-content/plugins/wp-paginate/wp-paginate.css?ver=1.2.3' type='text/css' media='screen' /> <script type='text/javascript' src='http://localhost:8888/lwh/wp/wp-includes/js/l10n.js?ver=20101110'></script> <script type='text/javascript' src='http://localhost:8888/lwh/wp/wp-includes/js/jquery/jquery.js?ver=1.4.4'></script> <script type='text/javascript' src='http://localhost:8888/lwh/wp/wp-content/plugins/easy-fancybox/fancybox/jquery.fancybox-1.3.4.pack.js?ver=1.3.4'></script> <script type='text/javascript' src='http://localhost:8888/lwh/wp/wp-content/plugins/easy-fancybox/fancybox/jquery.easing-1.3.pack.js?ver=1.3'></script> <script type='text/javascript' src='http://localhost:8888/lwh/wp/wp-content/plugins/easy-fancybox/fancybox/jquery.mousewheel-3.0.4.pack.js?ver=3.0.4'></script> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://localhost:8888/lwh/wp/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://localhost:8888/lwh/wp/wp-includes/wlwmanifest.xml" /> <link rel='index' title='The Little Wedding Helper' href='http://localhost:8888/lwh/wp/' /> <link rel='prev' title='Wedding Gallery' href='http://localhost:8888/lwh/wp/gallery/' /> <link rel='next' title='Contact' href='http://localhost:8888/lwh/wp/contact/' /> <meta name="generator" content="WordPress 3.1.3" /> <link rel='canonical' href='http://localhost:8888/lwh/wp/press/' /> <!-- Easy FancyBox plugin for WordPress using FancyBox 1.3.4 - RavanH (http://4visions.nl/en/wordpress-plugins/easy-fancybox/) --> <script type="text/javascript"> /* <![CDATA[ */ jQuery(document).ready(function($){ var fb_timeout = null; var fb_opts = { 'overlayShow' : true, 'centerOnScroll' : true, 'showCloseButton' : true, 'showNavArrows' : false, 'titleShow' : false, 'titlePosition' : 'over', 'titleFromAlt' : false, 'onCleanup' : function() { if(fb_timeout) { window.clearTimeout(fb_timeout); fb_timeout = null; } }, 'transitionIn' : 'elastic', 'easingIn' : 'easeOutBack', 'transitionOut' : 'elastic', 'easingOut' : 'easeInBack', 'opacity' : false }; /* IMG */ var fb_IMG_select = 'a[href$=".jpg"]:not(.nofancybox),a[href$=".JPG"]:not(.nofancybox),a[href$=".gif"]:not(.nofancybox),a[href$=".GIF"]:not(.nofancybox),a[href$=".png"]:not(.nofancybox),a[href$=".PNG"]:not(.nofancybox)'; $(fb_IMG_select).addClass('fancybox'); var fb_IMG_sections = jQuery('article, div.hentry'); fb_IMG_sections.each(function() { jQuery(this).find(fb_IMG_select).attr('rel', 'gallery-' + fb_IMG_sections.index(this)); }); $('a.fancybox').fancybox( $.extend({}, fb_opts, { }) ); /* PDF */ $('a[href$=".pdf"]:not(.nofancybox)').addClass('fancybox-pdf'); $('a.fancybox-pdf').fancybox( $.extend({}, fb_opts, { 'type' : 'html', 'width' : '100%', 'height' : '100%', 'margin' : 0, 'padding' : 0, 'autoScale' : false, 'titleShow' : false, 'titlePosition' : 'float', 'titleFromAlt' : false, 'transitionOut' : 'fade', 'easingIn' : 'swing', 'autoDimensions' : false, 'scrolling' : 'no', 'onStart' : function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.content = '<object data="' + selectedArray[selectedIndex].href + '#toolbar=1&navpanes=0&nameddest=self&page=1&view=FitH,0&zoom=80,0,0" type="application/pdf" height="100%" width="100%"><param name="src" value="' + selectedArray[selectedIndex].href + '#toolbar=1&navpanes=0&nameddest=self&page=1&view=FitH,0&zoom=80,0,0" /><a href="' + selectedArray[selectedIndex].href + '" style="display:block;font-size:18px;height:20px;position:absolute;top:50%;margin:-10px auto 0 auto">' + $(selectedArray[selectedIndex]).html() + '</a></object>' } }) ); }); /* ]]> */ </script> <!-- Galleria WP [ BEGIN ] --> <link rel="stylesheet" type="text/css" href="http://localhost:8888/lwh/wp/wp-content/plugins/galleria-wp/css/galleria_wp.css" media="screen" /> <link rel="stylesheet" type="text/css" href="http://localhost:8888/lwh/wp/wp-content/plugins/galleria-wp/skins/metal/skin.css" media="screen" /> <script type='text/javascript' src='http://localhost:8888/lwh/wp/wp-content/plugins/galleria-wp/js/jquery-1.2.6.min.js'></script> <script type='text/javascript' src='http://localhost:8888/lwh/wp/wp-content/plugins/galleria-wp/js/jquery.galleria.js'></script> <script type='text/javascript' src='http://localhost:8888/lwh/wp/wp-content/plugins/galleria-wp/js/jquery.jcarousel.js'></script> <!-- Galleria WP [ END ] --> <style type="text/css" media="print">#wpadminbar { display:none; }</style> <style type="text/css"> html { margin-top: 28px !important; } * html body { margin-top: 28px !important; } </style> </head> <div id="container"> <div id="header" class="shadow"> <h1 style="padding-bottom:0px;"><a id="title" href="http://www.littleweddinghelper.co.uk"><span class="none">The Little Wedding Helper</span></a></h1> <div class="flower"><span class="none">Flower</span></div> <div class="social_links"> <ul> <li><a id="facebook" href="http://www.facebook.com/thelittleweddinghelper"></a></li> <li><a id="twitter" href="http://twitter.com/#!/weddinghelperuk"></a></li> <li><a id="email" href="mailto:[email protected]"></a></li> </ul> </div> <div class="header_bird"><span class="none">The Little Wedding Helper</span></div> <div id="links"> <ul class="nav"> <li><a href="/lwh/wp">Home</a></li> <li>•</li> <li><a href="/lwh/wp/services/">Services</a></li> <li>•</li> <li><a href="/lwh/wp/category/gallery/">Gallery</a></li> <li>•</li> <li><a href="/lwh/wp/press/">Press</a></li> <li>•</li> <li><a href="/lwh/wp/contact/">Contact</a></li> <li>•</li> <li><a href="/lwh/wp/testimonials/">Testimonials</a></li> <li>•</li> <li><a href="/lwh/wp/links/">Links</a></li> </ul> </div> </div> <div id="box" class="shadow"> <div id="content" class="wide"> <h1 class="h1-border">Press</h1> <div class="grid-press"> <a class="press" id="press1" href="http://localhost:8888/lwh/wp/wp-content/themes/lwh/images/press1.jpg"></a> <h3>Perfect Wedding: Circus</h3> </div> <div class="grid-press"> <a class="press" id="press2" href="http://localhost:8888/lwh/wp/wp-content/themes/lwh/images/press2.jpg"></a> <h3>Clifton Life Guide</h3> </div> <div class="grid-press"> <a class="press" id="press3" href="http://localhost:8888/lwh/wp/wp-content/themes/lwh/images/press3.pdf"></a> <h3>Perfect Wedding:Venues</h3> </div> <div class="grid-press"> <a class="press" id="press4" href="http://localhost:8888/lwh/wp/wp-content/themes/lwh/images/press4.pdf"></a> <h3>Perfect Wedding:Village Hall</h3> </div> <div class="grid-press" style="margin-right:0px;"> <a class="press" id="press5" href="http://localhost:8888/lwh/wp/wp-content/themes/lwh/images/press5.jpg"></a> <h3>Perfect Wedding: Oscars</h3> </div> <div class="grid-press"> <a class="press" id="press6" href="http://localhost:8888/lwh/wp/wp-content/themes/lwh/images/press6.jpg"></a> <h3>Perfect Wedding: Military Chic</h3> </div> <div class="grid-press"> <a class="press" id="press7" href="http://localhost:8888/lwh/wp/wp-content/themes/lwh/images/press7.jpg"></a> <h3>Perfect Wedding: Eco Chic</h3> </div> <div class="grid-press"> <a class="press" id="press8" href="http://localhost:8888/lwh/wp/wp-content/themes/lwh/images/press8.pdf"></a> <h3>Perfect Wedding: Hot Topic</h3> </div> </div> </div> </div><div id="footer"> <p>©2010 The Little Wedding Helper • <a href="mailto:[email protected]">E-Mail</a> • Site by <a href="http://www.jessicabiscoe.co.uk" title="Jessica Biscoe">Jessica Biscoe</a> • Illustration by <a href="http://www.bmjt.co.uk">BMJT</a></p> </div> </body> </html>Forum: Plugins
In reply to: [Firelight Lightbox] PDF not working and overlay not closing.Yeah reluctantly, it was that or create an entire category with empty posts just to pull through one custom field image. I didn’t want to over complicate the dashboard for the client (who’ll be making minimal changes herself), so I coded this one section. Unless i’m missing a much better way…
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href='http://fonts.googleapis.com/css?family=Droid+Serif' rel='stylesheet' type='text/css'> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><?php /* * Print the <title> tag based on what is being viewed. */ global $page, $paged; wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ); ?></title> <link rel="shortcut icon" href="favicon.ico" /> <link rel="icon" href="/favicon.ico" type="image/x-icon" /> <link href="<?php bloginfo( 'stylesheet_url' ); ?>" rel="stylesheet" type="text/css" /> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-16239767-5']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <?php wp_head(); ?> </head> <div id="container"> <div id="header" class="shadow"> <h1 style="padding-bottom:0px;"><a id="title" href="..."><span class="none">The Little Wedding Helper</span></a></h1> <div class="flower"><span class="none">Flower</span></div> <div class="social_links"> <ul> <li><a id="facebook" href="..."></a></li> <li><a id="twitter" href="..."></a></li> <li><a id="email" href="mailto:..."></a></li> </ul> </div> <div class="header_bird"><span class="none">The Little Wedding Helper</span></div> <div id="links"> <ul class="nav"> <li><a href="/lwh/wp">Home</a></li> <li>•</li> <li><a href="/lwh/wp/services/">Services</a></li> <li>•</li> <li><a href="/lwh/wp/category/gallery/">Gallery</a></li> <li>•</li> <li><a href="/lwh/wp/press/">Press</a></li> <li>•</li> <li><a href="/lwh/wp/contact/">Contact</a></li> <li>•</li> <li><a href="/lwh/wp/testimonials/">Testimonials</a></li> <li>•</li> <li><a href="/lwh/wp/links/">Links</a></li> </ul> </div> </div> <div id="box" class="shadow">Forum: Plugins
In reply to: [Firelight Lightbox] PDF not working and overlay not closing.This is the code for the page the images/pdf’s are on:
<?php /* Template Name: Press */ ?> <?php get_header(); ?> <div id="content" class="wide"> <h1 class="h1-border"><?php the_title(); ?></h1> <div class="grid-press"> <a class="press" id="press1" href="<?php bloginfo( 'template_directory' ); ?>/images/press1.jpg"></a> <h3>Perfect Wedding: Circus</h3> </div> <div class="grid-press"> <a class="press" id="press2" href="<?php bloginfo( 'template_directory' ); ?>/images/press2.jpg"></a> <h3>Clifton Life Guide</h3> </div> <div class="grid-press"> <a class="press" id="press3" href="<?php bloginfo( 'template_directory' ); ?>/images/press3.pdf"></a> <h3>Perfect Wedding:Venues</h3> </div> <div class="grid-press"> <a class="press" id="press4" href="<?php bloginfo( 'template_directory' ); ?>/images/press4.pdf"></a> <h3>Perfect Wedding:Village Hall</h3> </div> <div class="grid-press" style="margin-right:0px;"> <a class="press" id="press5" href="<?php bloginfo( 'template_directory' ); ?>/images/press5.jpg"></a> <h3>Perfect Wedding: Oscars</h3> </div> <div class="grid-press"> <a class="press" id="press6" href="<?php bloginfo( 'template_directory' ); ?>/images/press6.jpg"></a> <h3>Perfect Wedding: Military Chic</h3> </div> <div class="grid-press"> <a class="press" id="press7" href="<?php bloginfo( 'template_directory' ); ?>/images/press7.jpg"></a> <h3>Perfect Wedding: Eco Chic</h3> </div> <div class="grid-press"> <a class="press" id="press8" href="<?php bloginfo( 'template_directory' ); ?>/images/press8.pdf"></a> <h3>Perfect Wedding: Hot Topic</h3> </div> </div> </div> <?php get_footer(); ?>I had wp-head in there, but it was at the beginning of my head tags, and I’ve just read somewhere it should be before the closing tag. Now with the PDF’s i’m getting the overlay (greyed page) but the pdf file isn’t pulling through. The x to close still doesn’t do anything.
The thumbnail images are pulled through in the css as background to the < a > tags to achieve a ‘stacked’ hover effect, could that be the problem?
I tried adding a ‘dummy’ transparent thumbnail into the < a > tag in case the plugin needed the two image files to work, but the same thing happened.
Thanks so much for your help!
Forum: Plugins
In reply to: [Firelight Lightbox] PDF not working and overlay not closing.Ah, it’s all held on the localhost on my machine at the moment, sorry. Can I paste any code to help? I’ve got Contact Form 7, Galleria WP and WP Paginate activated.
I’ve built the theme myself, is it possible I’ve left out some crucial tags?
Forum: Plugins
In reply to: Wordcycle slideshow – exclude attached images?Anyone have any ideas?
Thanks
Forum: Fixing WordPress
In reply to: Navigation when excluding category broken in 3.1*facepalm* for anyone as silly as me, and to resolve this lonely thread, my permalink structure was set to numeric – I set a custom of /archives/%postname% and it worked.
My host suggested this after I queried a conflict in versions of MySQL, they also claimed to have changed something in my .htaccess file which might have made a difference.
Oh well – it works!