Forums

I can not find the ID in admin pannel (14 posts)

  1. Sira
    Member
    Posted 3 years ago #

    I can not find the ID in admin pannel

  2. equaldesign
    Member
    Posted 3 years ago #

    What do you mean by the ID?

  3. Sira
    Member
    Posted 3 years ago #

    category IDs

  4. Firas Bashiti
    Member
    Posted 3 years ago #

    what themes you use ?

  5. equaldesign
    Member
    Posted 3 years ago #

    Hover over the categories in manage categories. In the status bar at the bottom of your browser you will see something like ID=1 in the address. This is the ID number of a category. In the example above it would be 1.

  6. Sira
    Member
    Posted 3 years ago #

    Theme: Arthemia

  7. Sira
    Member
    Posted 3 years ago #

    I do not understand this text

    3.To show the category bar in the front page properly, you have to put the correct category IDs to this line in the index.php file:
    <?php $display_categories = array(5,6,7,8,11); $i = 1;
    foreach ($display_categories as $category) { ?>
    Notice that 5, 6, 7, 8, and 11 are the IDs of the category to be shown in the category bar.

  8. Firas Bashiti
    Member
    Posted 3 years ago #

    you should go to your Themes Editor then edit "index.php" and paste this code

    <?php $display_categories = array(5,6,7,8,11); $i = 1;
    foreach ($display_categories as $category) { ?>

    before line 5,6,7,8,11 line

    before you edit index.php you chmod 777 index.php from the FTP or SSH .

    regards

  9. Sira
    Member
    Posted 3 years ago #

    I put this code in edit themes and changed the chmod. And as usual

  10. Sira
    Member
    Posted 3 years ago #

    I do not understand this text

    3.To show the category bar in the front page properly, you have to put the correct category IDs to this line in the index.php file:
    <?php $display_categories = array(5,6,7,8,11); $i = 1;
    foreach ($display_categories as $category) { ?>
    Notice that 5, 6, 7, 8, and 11 are the IDs of the category to be shown in the category bar.

  11. Firas Bashiti
    Member
    Posted 3 years ago #

    so delete
    <?php $display_categories = array(5,6,7,8,11); $i = 1;
    foreach ($display_categories as $category) { ?>

    and chmod 644 your index.php

    about that themes its been different from theme to default wordpress theme ...

    try to contact themes founder .

    regards

  12. ClaytonJames
    Member
    Posted 3 years ago #

    ...you should go to your Themes Editor then edit "index.php" and paste this code

    That does not sound quite right. I think that may already be present in the themes index.php

    What this appears to mean in the Arthemia theme.:

    To show the category bar in the front page properly, you have to put the correct category IDs to this line in the index.php file:
    <?php $display_categories = array(5,6,7,8,11); $i = 1;
    foreach ($display_categories as $category) { ?>
    Notice that 5, 6, 7, 8, and 11 are the IDs of the category to be shown in the category bar.

    Get your category ID's by doing this:

    Hover over the categories in manage categories. In the status bar at the bottom of your browser you will see something like ID=1 in the address. This is the ID number of a category. In the example above it would be 1.

    ...as equaldesign instructed. Once you have those numbers, substitute them for the "5,6,7,8,11" mentioned above. That will make the category bar show up on the front page of the theme.

    These appear to be instructions from the theme author's site.

  13. kutatishh
    Member
    Posted 3 years ago #

    Thanks for the hover tip equaldesign.

  14. LyLBunny
    Member
    Posted 3 years ago #

    @equaldesign: You're the best! Couldn't have fixed it without you =)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags