• I have just upgraded to 3.1.2

    In previous versions I have a nasty hack to alter the way my Category links are expressed on the blog. Usually, after an upgrade, I can just find the equivalent bit of code in classes.php and update it manually. This upgrade though, that file seems to have disappeared completely.

    Here’s the code from an earlier version of classes.php that I want to add to the new, equivalent, location:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Any ideas?

    Thanks a lot

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter 0bvious

    (@0bvious)

    Here’s the code: pastebin

    The important altered lines:

    $cat_name = apply_filters( 'list_cats', $cat_name, $category );
    
                    $link = '<a href="https://machinemachine.net/stream/items/tag/' . $cat_name . '" ';
    
                    if ( $use_desc_for_title == 0 || empty($category->description) )

    Thread Starter 0bvious

    (@0bvious)

    I am still delving in the files, and google searching like mad, but no look.

    I realise that the classes.php file was split into separate class files in version 3.1, but I can’t find any info regarding how exactly that occured.

    I have searched far and wide for the lines above, or anything similar. No luck.

    Basically, I re-direct my categories to an external archive maintained using an old piece of opensource software (sweetcron). I want to express the slug of the category rather than the full name and then redirect to my external archive, using the name of the category at the end of the URL

    I have no idea how to build plugins etc. and the way I have used above to do this worked fine up until this point.

    Any advice would be greatly appreciated at this point

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘in 3.1.2 what's the equivalent to classes.php?’ is closed to new replies.