flint_and_tinder
Forum Replies Created
-
A-ha! Double quotes.
Thank you very much, it works like a charm.
Forum: Plugins
In reply to: auto generate thumbnail from video by scanning whole post – lost plug-inPerfect! Thank you so much, it works a charm.
I do have a further question though. Ideally what I’m trying to set up is an action that checks to see if there is a value entered into the vimeo_id field and if not, then use a value entered into a youtube_id field.
In the original template, I had this:
<?php if( $project_item = get_post_meta($post->ID, 'vimeo_id', true) ): ?> <iframe src="https://player.vimeo.com/video/<?php echo $project_item; ?>?title=0&byline=0&portrait=0" width="508" height="286" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe> <?php else: ?> <iframe width="508" height="286" src="https://www.youtube.com/embed/<?php echo get_post_meta($post->ID, 'youtube_id', true);?>" frameborder="0" allowfullscreen></iframe> <?php endif; ?>
Do you have any idea how this would work with your plug-in? Would I need to add something similar to the code you’ve provided for the youtube_id field as well? If so, if you could point out where I’d be grateful and am more than happy to pay you for your time.
Sod this. I’ve given up with this plug-in. It’s caused nothing but grief. After removing the inbuilt CSS the plug-in seemed to have screwed up the system and meant that any time I activated, deactivated or deleted any other plug-in I got a white screen. This white screen spread to the wp-admin page so I couldn’t even log-in.
Found the br. Approx line 1312 of visual-form-builder.php
Also MMuro, which part of the code do I have to fiddle with the remove the br before the verification field?
Ok, I’ve done that. Still no joy.
Plus, I’ve now set up a fresh WP install on the destination web host the theme I’m developing will use and added VFB and WP-Mail-SMTP. I then put in the smtp details of the host. I get the same issues. I only receive a contact form email or smtp test email in 1 out of the 4 destination addresses I tried.
I don’t know if this helps but the address the email gets sent to is an Apple .mac.com, whereas 2 of the 3 other addresses that receive nothing are one.com accounts.
Can anyone help pin-point where the issue is here please? Is it the servers of the addresses that don’t receive the emails fault (i.e. one.com)? Or it is the servers where WP are installed? (i.e. my local MAMP, or the client’s web-host).
All this is a bit above my head and I just need to know that the form can send emails to the client before I go live with the site. Is trying another form plug-in such as Gravity Forms going to be worth the expense and time? Or is this simply an issue with servers?
I’m confused. ??
I have. On all three accounts. No emails from the site in any of them.
Forum: Fixing WordPress
In reply to: Post grid that adds code to post 1,2,3,4Forgot to click notify button before.
Forum: Fixing WordPress
In reply to: Post grid that adds code to post 1,2,3,4What would I have to change to pull in either 3 posts and style each one differently, or pull in say 5 posts and just style the first and last?
Any help would be appreciated.
Forum: Fixing WordPress
In reply to: Register to view download section?Still stuck here, any suggestions of which method would be better?
Forum: Fixing WordPress
In reply to: Older/Newer Posts not displayingI appear to have fixed it by changing this:
<?php query_posts('cat=5s&showposts=5'); ?>
to this:
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts($y_string.'&cat=5&paged=' . $paged); ?>
Can anyone see any problems in this?
Forum: Plugins
In reply to: [Plugin: Custom Field Template] Textarea value keeps disappearingIgnore that. I have fixed it by removing the extra letter space within the [Page Contact ] line.
Correct code is [Page Contact].
Forum: Fixing WordPress
In reply to: Display Custom Field Data in aOk I’ve managed to figure it out. The code in my example was slightly different to what I posted above.
Therefore final code, which seems to work ok whenever there is more than one image is this:
<div id="slider" class="pageSlider"> <ul> <?php $pic1 = get_post_meta($post->ID, 'Artist Image 1', true); if (!empty($pic1)) : ?> <li><img src="<?php echo $pic1; ?>" height="388" width="620"/></li> <?php endif; ?> <?php $pic2 = get_post_meta($post->ID, 'Artist Image 2', true); if (!empty($pic2)) : ?> <li><img src="<?php echo $pic2; ?>" height="388" width="620"/></li> <?php endif; ?> <?php $pic3 = get_post_meta($post->ID, 'Artist Image 3', true); if (!empty($pic3)) : ?> <li><img src="<?php echo $pic3; ?>" height="388" width="620"/></li> <?php endif; ?> <?php $pic4 = get_post_meta($post->ID, 'Artist Image 4', true); if (!empty($mp4)) : ?> <li><img src="<?php echo $mp4; ?>" height="388" width="620"/></li> <?php endif; ?> <?php $pic5 = get_post_meta($post->ID, 'Artist Image 5', true); if (!empty($pic5)) : ?> <li><img src="<?php echo $pic5; ?>" height="388" width="620"/></li> <?php endif; ?> </ul> </div>
If only 1 image is added into the custom field then the slider just slides through that image only. Is there any way I can tell the system that if there is only one image loaded that it outputs it as a static jpeg instead of a ul within the slider?
Forum: Fixing WordPress
In reply to: Display Custom Field Data in aOk I’ve realised I didn’t add the $ before each of the pic(x)s.
Doing that has made the images appear, but in the post example I am using where only 1 pic URL has been inputed (Artist Image 1) the slider just outputs that 1 image 5 times and scrolls through them.
Can anyone help please?
Forum: Fixing WordPress
In reply to: Display Custom Field Data in aI found some other code online for something else and tried to adapt it, but it doesn’t work. Could it with a bit of tinkering though?
Any help here would be incredibly appreciated…
<?php pic1 = get_post_meta($post->ID, 'Artist Image 1', true); if (!empty($pic1)) : ?> <li><img src="<?php echo $pic1; ?>" height="388" width="620"/></li> <?php endif; ?> <?php pic2 = get_post_meta($post->ID, 'Artist Image 2', true); if (!empty($pic2)) : ?> <li><img src="<?php echo $pic2; ?>" height="388" width="620"/></li> <?php endif; ?> <?php pic3 = get_post_meta($post->ID, 'Artist Image 3', true); if (!empty($pic3)) : ?> <li><img src="<?php echo $pic3; ?>" height="388" width="620"/></li> <?php endif; ?> <?php pic4 = get_post_meta($post->ID, 'Artist Image 4', true); if (!empty($mp4)) : ?> <li><img src="<?php echo $mp4; ?>" height="388" width="620"/></li> <?php endif; ?> <?php pic5 = get_post_meta($post->ID, 'Artist Image 5', true); if (!empty($pic5)) : ?> <li><img src="<?php echo $pic5; ?>" height="388" width="620"/></li> <?php endif; ?>