tobydecks
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Help installing wordpressAre you installing it locally?
If so here’s a tutorial I did on installing WP on your local machine.
https://www.youtube.com/watch?v=NcGnmE3lpk0&feature=youtu.beForum: Plugins
In reply to: [Contact Form 7] Modal Contact Form 7 with Fancybox 2Hey djferik.
Thank you!
I’ve got it working now.
The old version of Fancybox is because it comes with WP-Property.I really appreciate you taking some time to look at it.
You’re a legend ??Thanks again
Toby
Forum: Plugins
In reply to: [Contact Form 7] Modal Contact Form 7 with Fancybox 2That is awesome mate. Just what I was looking for.
However, I am getting the Fancybox error that it can’t find the content, so I’m wondering if I’ve missed something.<!-- change 'yourdomain.com' with your real domain :) -->jQuery(function(){jQuery(".email-contact").fancybox({tpl:{iframe:'<iframe class="fancybox-iframe" name="fancybox-frame" frameborder="0" hspace="0" allowtransparency="true" scrolling="no" src="https://79.170.44.86/curtis-sloane.com/wp-content/themes/curtisSloane/overlayForms/email-contact.php"></iframe>'},maxWidth:"645",maxHeight:"425",fitToView:!1,width:"645",height:"425",autoSize:!1,closeClick:!1,openEffect:"none",closeEffect:"none"})})
The call has the right URL in for the email-contact.php file, so I’m a bit stumped.The shortcode call looks right too
<?php echo do_shortcode('[contact-form-7 id="248" title="OverTest"]'); ?>
I’m using WP-property that already uses fancybox, but the overlay is working so I guess there’s no conflicts. Any ideas?
The dev site is here
https://79.170.44.86/curtis-sloane.com/
Click the Register to find out more link the top right.Cheers
TobyForum: Plugins
In reply to: Getting results from WP databaseThe category ID number, rather than the name.
I have `$category = get_the_category();
$catid = $category[0]->cat_name;`
That gave me the name of the category, but I want the ID number instead.
Can I adapt the above to give me the number rather than the name?Fanks
Forum: Plugins
In reply to: Getting results from WP databaseAhh
$wpdb->query
did it ??Now, another question is can I get the current category for the post I’m viewing and store it as a variable?
Thanks
Forum: Plugins
In reply to: $wpdb->update won't write to databaseYeah. I was checking the database.
Just realised I was being a total numpty.
Fixed it now.
Thanks anyway ??
Forum: Plugins
In reply to: [Countdown Timer] [Plugin: Countdown Timer] Remove the word "in"Cheers.
Sorted it ??Forum: Plugins
In reply to: Running loop when logged inThanks for replying, but I’m still stuck.
Here’s the code
<?php get_header(); ?> <div id="content"> <?php include(TEMPLATEPATH."/l_sidebar.php");?> <div id="contentleft"> <?php if ( is_user_logged_in() ) { if (have_posts()) : while (have_posts()) : the_post(); the_content(); endwhile; else: ?> <p>You need to log in to view this content</p> <?php endif; ?> <div style="clear:both;"></div> </div> <?php include(TEMPLATEPATH."/r_sidebar.php");?> </div> <!-- The main column ends --> <?php get_footer(); ?>
I just keep getting an unexpected end on line 17.
Do I have curly brace issues?
Cheers
Forum: Fixing WordPress
In reply to: Redirect LoopOooh, heres the link to the site
https://sunrise.tobydecks.co.uk/??
Forum: Themes and Templates
In reply to: Mixing up pages and categoriesThanks Michael.
That worked perfectly ??Forum: Plugins
In reply to: Pull latest attachment from post?Hi,
I’m a bit of a WP/PHP newbie. This post has been really helpful, but I’m a bit confused. I need to pull the images from each post individually, but instead of them linking to the actual image itself, I need the image to link to the post that its been pulled from. I’ve been using this bit of code.<?php $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach ($attachments as $attachment) { echo apply_filters('the_title', $attachment->post_title); the_attachment_link($attachment->ID, false); } } ?>
I guess I can use <?php the_ID(); ?> to link to the post, but don’t know where it needs to go, or in fact what is generating the link to the image in the first place.
Can anyone help?
Have I made any sense?Cheers
??