danielmck
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Taxonomy archiveOkay i did the archive wrong,
I now have a page with a list of all tags in a custom taxonomy
using:<?php $taxonomy = 'custom'; $orderby = 'name'; $show_count = 0; $pad_counts = 0; $hierarchical = 1; $title = ''; $args = array( 'taxonomy' => $taxonomy, 'orderby' => $orderby, 'show_count' => $show_count, 'pad_counts' => $pad_counts, 'hierarchical' => $hierarchical, 'title_li' => $title ); ?> <ul> <?php wp_list_categories( $args ); ?> </ul>And each tag list item goes to a page with all posts tagged with that custom taxonomy tag using taxonomy-custom.php and:
<?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>Now is it possible to make this page a wordpress ‘page’ template
so that for each taxonomy tag i have a new page using the same template
in which the user can write a bit of info about the particular taxonomy tag?I created a page template using the taxonomy.php code but it doesn’t work because i’m guessing wordpress is using the archive.php instead through the template hierarchy?
Hope i explained ok and thanks for any help
Forum: Fixing WordPress
In reply to: Taxonomy archiveok i found out how to show all custom taxonomies on a page through
<?php $custom_query = new WP_Query( array( 'custom-taxonomy') ); ?> <?php while ( $custom_query->have_posts() ) : $custom_query->the_post(); ?>now how do i show all posts tagged with one custom taxonomy?
Forum: Fixing WordPress
In reply to: Widgets not showing in adminAaargh,
found out what was wrong, i was editing my local copy of the theme instead of the one i had on my local serverForum: Fixing WordPress
In reply to: Widgets not showing in adminO and i’m getting the ‘No sidebars defined’ warning
Forum: Fixing WordPress
In reply to: Add groups/teamsanyone?
Forum: Hacks
In reply to: Allow users to write postsThanks but thats the tut i posted
Forum: Hacks
In reply to: Allow users to write postsForum: Hacks
In reply to: Allow users to write postsBut it was written in 2008 so think it might be a little out of date.
eg, in the tutorial he mentions using role manager plugin but i think the same thing can be done now within the wordpress dashboard?He has made a nice site with the tutorial, similar to what i want but mine will have commenting functionality.
Daniel
Forum: Hacks
In reply to: Using custom fields to display social iconsWill defo have a look at that book, thanks.
I’ve just tried out the code, it half works,
each social comes up like this(using facebook as an example:mysite/wp-content/themes/mythemeFacebook profile
on the webpage it shows that url then the facebook link right on the end, it links to the correct url.
All that is wrong is that the icon doesn’t show and my theme location url shows.
If it matters i’m creating a child theme using bones.Daniel
Forum: Hacks
In reply to: Using custom fields to display social iconsAs i said i don’t know much about php,
but it looks like it’s doing the same thing as my code
except alot better,
the second part of your code will show each profile if it exists,
just with one bit of code,
instead of my code which was to show each profile with the same code
repeated for each profile name which would be alot of code.What i was wondering was does it stil use the custom fields, but now
after reading through it again i realise that the first bit of your
code is using the custom fields.
I hope i’ve understood it properly??I haven’t been able to try your code out yet, but i will be back
at my own computer tomorrowand will let you know how it goes.Thanks
DanielForum: Hacks
In reply to: Using custom fields to display social iconsThanks wlindley for the help,
Can you explain to me how i would use this code?
Is it simply just replacing my php with the code
you reccomended or is there more i need to do to make it work?Daniel
Forum: Hacks
In reply to: Using custom fields to display social iconsHeres the cap on imageshack
http://img842.imageshack.us/img842/9055/socialside.jpgI input the custom fields and the icon for that social profile shows
Forum: Hacks
In reply to: Using custom fields to display social iconsHi wlindley
You could setup an array of the various website names and use a loop.
Could you go a bit more indepth on this, i don’t really how this would be done.
Also, letting folks put any arbitrary URL which will look like an official link, is probably a Bad Idea.
The way i’m doing it is the ‘user’ will fill out a form with all the necessary info and i will write it in manually, i have an image
of how my post displays at the moment but i don’t know how to upload it here lolForum: Hacks
In reply to: Using custom fields to display social iconsAnybody?
Forum: Fixing WordPress
In reply to: Listing CategoriesNever mind i figured it out.
Thanks