binga30
Forum Replies Created
-
Forum: Hacks
In reply to: How can I show an image inside the excerpt?I have found this resource which explains how to grab the first image inside a post.
http://www.wprecipes.com/how-to-get-the-first-image-from-the-post-and-display-it
Love finding my own answers 🙂
Forum: Plugins
In reply to: [Advanced AJAX Page Loader] Just want to exclude homepage from ajax loadYeh what I ended up doing was target the class of my link like above.
Take a look here:
http://stackoverflow.com/questions/14347632/jquery-if-statement-and-hasclassForum: Fixing WordPress
In reply to: displaying custom taxonomies in particular orderThanks again, I like your website by the way.
Forum: Fixing WordPress
In reply to: displaying custom taxonomies in particular orderYou are the king! Im doing a php and mysql course at the moment, but you have taught me something really useful in a matter of minutes.
This will allow me to wrap my own href’s to wherever I please.
Do you have a site that I could donate to you?
Forum: Fixing WordPress
In reply to: displaying custom taxonomies in particular orderThanks, this is exactly what I need. I just tried to echo $sorted_terms[0] though and got this error:
Catchable fatal error: Object of class stdClass could not be converted to string on line 85.
Line 85 contains my “echo $sorted_terms[0];” code.
Forum: Fixing WordPress
In reply to: displaying custom taxonomies in particular orderThat’s the thing I haven’t worked out. It’s kind of getting away from my original question, but I was hoping to be able to output each term with its own code, thereby allowing me to assign links when I determine where they are going.
I haven’t found out how to get the 2nd level term, or 3rd level term by itselt, without a link yet.
I appreciate your assistance greatly.
Forum: Fixing WordPress
In reply to: displaying custom taxonomies in particular orderKind of, like if the 2nd level item is NSW, it will be going to a level specific page that contains NSW content.
Forum: Fixing WordPress
In reply to: displaying custom taxonomies in particular orderWell it depends if its top level, 2nd level or 3rd level item. Each level will be going to a level specific page.
Forum: Fixing WordPress
In reply to: displaying custom taxonomies in particular orderHi Thanks for the quick reply.
I understand I can insert my own href, but as its in a loop, any value I give it will apply to all items correct?
What I need is to specify each items href individually.
Thanks again
Forum: Fixing WordPress
In reply to: displaying custom taxonomies in particular orderMy mistake, I hadn’t input my taxonomy of location into the string, I left it as category.
This code is nearly perfect, it does output in hierarchical order, but I would like to be able to put my own href around each item as they will be going off to different pages.
Forum: Fixing WordPress
In reply to: displaying custom taxonomies in particular orderThanks for the suggestion, however I get an error when i insert that code into my page:
Warning: Invalid argument supplied for foreach() in /home/content/79/8603079/html/squizzat/wp-content/themes/directorypress/template_directorypress/_item.php on line 63
Forum: Fixing WordPress
In reply to: Retrieve input form dataOk i forgot the echo and the $userdata->ID parts.
This code will show the value but not allow me to edit it?
echo get_cimyFieldValue($userdata->ID, 'PHONENUMBER'); ?>How could I allow this to change when i click submit button?
Here is the line I needed for the value:
echo get_cimyFieldValue($userdata->ID, 'PHONENUMBER'); ?>However this only displays the value and does not let me change it upon submit?
My field does display on the user profile in the dashboard but not on the profile page on the site.
Here is how I am trying to output a field called PHONENUMBER:
<div class="details_fields"> <label for="email"><?php echo SPEC($GLOBALS['_LANG']['_tpl_myaccount27']) ?></label> <input type="text" name="cimy_uef_PHONENUMBER" value="<?php get_user_meta($user_id,'cimy_uef_PHONENUMBER',true);?>" class="short right20" /><br /> </div>Any tips appreciated
Forum: Fixing WordPress
In reply to: displaying custom taxonomies in particular orderJust so I understand correctly, your saying that each item such as Australia, Victoria and Melbourne would need their own parents?
In my situation Australia is a parent, which has children QLD, NSW, VIC etc…. which they have children including all suburb/city names.