1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress Categories & Archives Error Help *Please*

Discussion in 'PHP' started by j.blu, Feb 2, 2008.

  1. #1
    Hello,

    I've just installed a new magazine style wordpress theme on one of my blogs, and am having trouble with getting the category links to work. This is the message that I get when I click on a category link:

    Fatal error: Call to undefined function: the_title_attribute() in /home/localkin/public_html/wp-content/themes/PRiNZ_BranfordMagazine_latest/branfordmagazine/archive.php on line 40

    The link to my blog is in my sig anchored 'local kine hawaii blog' . The address is localkine dot org. Any help would be much appreciated :eek: Thank you in advance
     
    j.blu, Feb 2, 2008 IP
  2. Sabbir

    Sabbir Banned

    Messages:
    210
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #2
    hi, did you check the line 40. ok now you need to find out the specific function.
    are you using CMS(Like joomla etc.)?
     
    Sabbir, Feb 2, 2008 IP
    j.blu likes this.
  3. j.blu

    j.blu Peon

    Messages:
    319
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi Sabbir, thanks for the reply.

    No, I'm just using XHTML and PHP.

    Here's the line of code:

    <h4 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php __('Permanent Link to','branfordmagazine');?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>

    I can't seem to find the function...
     
    j.blu, Feb 2, 2008 IP
  4. j0ned

    j0ned Active Member

    Messages:
    684
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #4
    He clearly said he's using Wordpress...


    anyway, try replacing:

    the_title_attribute()
    Code (markup):
    on line 40 of archive.php with:

    the_title()
    Code (markup):
    What happens?
     
    j0ned, Feb 2, 2008 IP
  5. j.blu

    j.blu Peon

    Messages:
    319
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks j0ned

    This is the error message I get when I replaced the tags:

    Fatal error: Call to undefined function: the_tags() in /home/localkin/public_html/wp-content/themes/PRiNZ_BranfordMagazine_latest/branfordmagazine/archive.php on line 46

    Here's line 46:

    <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> <?php __('Posted in','branfordmagazine');?>
     
    j.blu, Feb 2, 2008 IP
  6. j0ned

    j0ned Active Member

    Messages:
    684
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Which version of Wordpress are you using? Try replacing:
    the_tags()
    Code (markup):
    with:
    the_category()
    Code (markup):
     
    j0ned, Feb 2, 2008 IP
    j.blu likes this.
  7. j.blu

    j.blu Peon

    Messages:
    319
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    That worked! :) Thank you very much...I left +rep for you. Thanks again.
     
    j.blu, Feb 2, 2008 IP
  8. j0ned

    j0ned Active Member

    Messages:
    684
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #8
    No problem :) Thanks for rep!
     
    j0ned, Feb 2, 2008 IP
    shallowink likes this.