[Wordpress Help] How do I change category names?

3 replies

I have been working on my website . On the homepage it shows recent from 4/3/5/2 where it should say recent from <insert category name>.

Can someone please help me, where do I tweak the code to make these displays correct?

Many Thanks
#category #change #names #wordpress
  • Profile picture of the author pjCheviot
    From WhosWho Theme Readme

    How do I customize the four category blocks on the homepage?

    On the home page of your blog there are 4 boxes that show recent articles from 4 particular categories. You can choose which category each box pulls from, as well as customize the orange title above the article to match the categories real name. This can all be done by using the custom option pages found in wp-admin. You will need the ID's of each of the categories you would like to pull from. If you don't know what the category ID is, just look at the end of the URL when browsing the category in your web browser.

    {{ DiscussionBoard.errors[8742584].message }}
    • Profile picture of the author phoenixflyhigh

      Thank you, actually I want to change the form where it says "recent from 4" to "recent from blogging/internet marketing" etc.

      Following is the code, I think there is some glitch, it's not working properly.

      <?php global $cat_option;
      $thumb = '';
      $width = 70;
      $height = 70;
      $classtext = 'catbox_image';
      $titletext = get_the_title();

      $thumbnail = get_thumbnail($width,$height,$classtext,$titletext ,$titletext);
      $thumb = $thumbnail["thumb"]; ?>

      <div class="home-categories">
      <span class="headings"><?php esc_html_e('recent from','WhosWho')?> <?php echo(get_option($cat_option)); ?></span>
      <a href="<?php the_permalink(); ?>">
      <?php the_title(); ?>
      <div style="clear:both;"></div>

      <?php if($thumb != '') { ?>
      <a href="<?php the_permalink() ?>" title="<?php printf(esc_attr__('Permanent Link to %s','WhosWho'), get_the_title()) ?>">
      <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext , $width, $height, $classtext); ?>
      <?php } ?>
      <?php truncate_post(310) ?>
      <div style="clear:both;"></div>

      Sorcery of stirring the emotions is here

      {{ DiscussionBoard.errors[8743917].message }}

Trending Topics