Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Forum: Fixing WordPress
    In reply to: Taxonomy archive
    Thread Starter danielmck

    (@danielmck)

    Okay 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 archive
    Thread Starter danielmck

    (@danielmck)

    ok 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?

    Thread Starter danielmck

    (@danielmck)

    Aaargh,
    found out what was wrong, i was editing my local copy of the theme instead of the one i had on my local server

    Thread Starter danielmck

    (@danielmck)

    O and i’m getting the ‘No sidebars defined’ warning

    Forum: Fixing WordPress
    In reply to: Add groups/teams
    Thread Starter danielmck

    (@danielmck)

    anyone?

    Forum: Hacks
    In reply to: Allow users to write posts
    Thread Starter danielmck

    (@danielmck)

    Thanks but thats the tut i posted

    Forum: Hacks
    In reply to: Allow users to write posts
    Thread Starter danielmck

    (@danielmck)

    Forum: Hacks
    In reply to: Allow users to write posts
    Thread Starter danielmck

    (@danielmck)

    I also found this tutorial:

    But 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

    Thread Starter danielmck

    (@danielmck)

    Will 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

    Thread Starter danielmck

    (@danielmck)

    As 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
    Daniel

    Thread Starter danielmck

    (@danielmck)

    Thanks 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

    Thread Starter danielmck

    (@danielmck)

    Heres the cap on imageshack
    http://img842.imageshack.us/img842/9055/socialside.jpg

    I input the custom fields and the icon for that social profile shows

    Thread Starter danielmck

    (@danielmck)

    Hi 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 lol

    Thread Starter danielmck

    (@danielmck)

    Anybody?

    Forum: Fixing WordPress
    In reply to: Listing Categories
    Thread Starter danielmck

    (@danielmck)

    Never mind i figured it out.
    Thanks

Viewing 15 replies - 1 through 15 (of 16 total)