mingis
Forum Replies Created
-
Forum: Plugins
In reply to: [InfiniteWP Client] Daily Update Notice to version 1.9.8 Client+1
Forum: Plugins
In reply to: [WP Super Cache] CDN Url replacementAwesome idea, thanks Donncha!
Forum: Plugins
In reply to: [Zero Spam for WordPress] Undefined index: spammer_msg_gfUpdate mentioned in https://wordpress.org/support/topic/gravity-forms-2-1-1-fail/ has fixed this issue.
Awesome, thanks Ronald – I’ll give this a go!
nice fix – this should be updated in the plugin, I’ve lost data from a few accounts after adding custom code snippets!
This should do the trick, obviously just replace the number with the number of the gallery you want to appear:
<?php echo nggShowGallery(1,null); ?>Forum: Plugins
In reply to: [Plugin: JJ NextGen JQuery Slider] php codex for gallery slider?ok finally found it on the forum:
<?php echo do_shortcode('[jj-ngg-jquery-slider gallery="1"]'); ?>nice work jjcoder!
Forum: Fixing WordPress
In reply to: Sign up useing ur own password not a emailthis plugin looks like it has the functionality you’re after:
Forum: Fixing WordPress
In reply to: Override WP Generated Password-bump-
I have a few users asking if this is possible.
I know it should be easy enough to just copy and paste the auto generated password that is emailed, but some people just freak out when they see it.
Cheers.
Forum: Fixing WordPress
In reply to: Can’t add tags to postsI have the same problem, I found the quick and dirty solution was just to add tags in ‘quick edit’ mode – that seems to work fine and hopefully the plugin confict will be resolved in future updates!
Forum: Fixing WordPress
In reply to: Custom FieldsJeez sorry – I posted that code incorrectly, I didn’t mean to nest anything (this is frying my brain!).
I meant to post:
style="background:url('<?php echo get_post_meta($post->ID, "background", true); ?>')i.e. the original recommendation by yourself!
My get_post_meta statement returns nothing – the background url is just blank! (except the single quote marks).
However if I use the <?php the_meta(); ?> function it returns the two custom fields exactly as I would expect them to look.
Forum: Fixing WordPress
In reply to: Custom FieldsThanks apljdi – I tried that, but no joy.
However I think I’m beggining to see the source of the problem: Does WordPress treat template pages differently?
I’m trying to achieve this on a post that has a template assigned to it so I detached the post from the template and added the custom field code to single.php
style="background:#000 url(<?php echo get_post_meta('<?php echo get_post_meta($post->ID, "background", true); ?>'); ?>when I reload the page the post then loaded from the default single.php and the background image works fine.
Soooo…
I copied all the code from single.php into my template (so the two files were exactly the same) and then re-assigned it to the post – I reloaded and . . . . it’s gone!
Forum: Fixing WordPress
In reply to: Custom FieldsHi Sorry it’s on a local server so I don’t have a URL, but here is the code for the page, would be most grateful for any ideas:
<?php /* Template Name: Portfolio-detail */ ?> <?php require 'header-portfolio.php'; ?> <?php while (have_posts()) : the_post(); ?> <div id="portfolio-feature" style="background:#000 url(<?php $key="background"; echo get_post_meta($post->ID, $key, true); ?>) center center;"> <div id="slider"> <?php the_content('') ?> <img src="<?php $key="thumbnail"; echo get_post_meta($post->ID, $key, true); ?>" width="250" height="120" alt="thumb"/> </div> </div> <div id="content-wrapper"> <div id="content"> <div class="content-left portfolio-page"> <div id="buttons"> <a href="#" id="btn-prev"></a> <a href="#" id="btn-pause"></a> <a href="#" id="btn-play"></a> <a href="#" id="btn-next"></a> </div> <h1><?php the_title('') ?></h1> <?php endwhile; ?> <?php wp_reset_query(); ?> </div> </div> <?php get_footer(); ?>