Patrick Orr
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Strange appearing on query_postsI found out what it was. I embedded a link in the content of the slider took that came out of the box. For some reason it leaves the link open. I had to throw a in there just below the slideshow. Hacky, but best I can come up with
Forum: Themes and Templates
In reply to: get post tags as php functionThis seem to work:
<?php $posttags = get_the_tags(); $count=0; if ($posttags) { foreach($posttags as $tag) { $count++; if (1 == $count) { echo $tag->name . ' '; } } } ?>
Forum: Themes and Templates
In reply to: get post tags as php functionThanks,
I am trying to use a tag as a class for a div which ties into a jquery menu that I have built.It looks like this so far:
[Code moderated as per the Forum Rules. Please use the pastebin]
I cant seem to get it to put the tags in though:( Do you have any ideas about how I should go about it?
Forum: Themes and Templates
In reply to: how do you use wp_enqueue_scriptNvm Esmi,
Thanks for your patience.
It was a syntax error.Forum: Themes and Templates
In reply to: how do you use wp_enqueue_scriptThanks again Esmi,
After reading up about this on some more blogs I feel like I am really close to getting it working, but all I am getting is a blank white screen at this point.This is what I have inserted into the bottom of my functions file:
[Code moderated as per the Forum Rules. Please use the pastebin]
What am I doing wrong?
Forum: Themes and Templates
In reply to: how do you use wp_enqueue_scriptSo as long as I create a function for each script into my functions.php file then I should not have to call any scripts in my head, they will just automagically be there?
Forum: Themes and Templates
In reply to: how do you use wp_enqueue_scriptThanks for your patience esmi.. just to recap:
in my functions php file I add:
<?php function my_init_method() { wp_register_script( 'jquery', 'https://code.jquery.com/jquery-1.5.2.min.js'); wp_register_script( 'nivo', '<?php bloginfo('template_url'); ?>/scripts/slimbox2.js'); wp_register_script( 'slimbox', '<?php bloginfo('template_url'); ?>/scripts/slimbox2.js'); wp_register_script( 'picasa', '<?php bloginfo('template_url'); ?>/scripts/jquery.EmbedPicasaGallery.js'); wp_register_script( 'pwi', 'php bloginfo('template_url'); ?>/scripts/jquery.pwi-min.js'); wp_register_script( 'swf', '<?php bloginfo('template_url'); ?>/scripts/jquery.swfobject.1-1-1.min.js'); wp_register_script( 'simpletube', '<?php bloginfo('template_url'); ?>/scripts/jquery.simpletube.js'); wp_register_script( 'jqvalidate', '<?php bloginfo('template_url'); ?>/scripts/jquery.jqvalidate.js'); } add_action('init', 'my_init_method'); ?>
then in my header file I just call these scripts by using:
<?php wp_enqueue_script("jquery"); ?> <?php wp_enqueue_script("nivo"); ?> <?php wp_enqueue_script("slimbox"); ?> <?php wp_enqueue_script("picasa"); ?> <?php wp_enqueue_script("pwi"); ?> <?php wp_enqueue_script("swf"); ?> <?php wp_enqueue_script("simpletube"); ?> <?php wp_enqueue_script("jqvalidate"); ?>
correct?
Forum: Themes and Templates
In reply to: get nested pagesThanks for the codex, I’ve come across this already and have been fidling with this portion:
<?php $mypages = get_pages('child_of='.$post->ID.'&sort_column=post_date&sort_order=desc'); foreach($mypages as $page) { $content = $page->post_content; if(!$content) // Check for empty page continue; $content = apply_filters('the_content', $content); ?> <h2><a href="<?php echo get_page_link($page->ID) ?>"><?php echo $page->post_title ?></a></h2> <div class="entry"><?php echo $content ?></div> <?php } ?>
I would like to make it dynamic instead of defining a static page id, is it possible to return the children of THIS page?
Sorry, I’m more of a html/css guy, php is not my strongest suit.
Forum: Themes and Templates
In reply to: Formatting blog titleYou can change the actual name of the blog in the settings panel of your wordpress account… aside from that you are going to need to access the CSS to change the font/color. If you wanted to rest the title on the horizontal line it is going to require some development on your theme… the current layout is not set up to do that.
goodluck
Forum: Themes and Templates
In reply to: CSS Issues HELP!I would suggest hiring out some help to develop/transfer the old design into a wordpress theme or just purchase a theme online.
Forum: Themes and Templates
In reply to: Duster theme CSS help.hey there.
all you need to do is add some CSS to: nav id=”access”what you need to add:
float: left; width: 100%;
Forum: Fixing WordPress
In reply to: WordPress Post Uploader is buggyI did try all those things, before(I saw u mentioned it in a different thread). Anyways, the problem seems to have fixed itself all on its own… Thanks anyways esmi. Appreciated:)
Forum: Themes and Templates
In reply to: Blank Space at top of pages when logged inThanks Esmi,
I do that, and its not a CSS problem, it only happens when I am logged in to edit the site. There are no conditional CSS tags for logged in users that I am aware of.Does wordpress generate anything differently when logged in?
Forum: Themes and Templates
In reply to: Blank Space at top of pages when logged inRegardless of if you are provided a link or not, you would NOT be able to log-in to the site and see what I am talking about. I was just curious if anyone else has come across this problem.
Here is the link though: https://www.1000ikc.com
Forum: Fixing WordPress
In reply to: How to delete wordpressI am assuming that by Chmod you mean file permissions.
I can modify them, and when I do it still does not make a different the folder wont disappear.