Support » Theme: The Funk » How to make View post in using tag instead of category

  • Resolved pecker1209

    (@pecker1209)


    Hello,
    I want to know how can i make VIEW POST IN USING “TAG” INSTEAD OF CATEGORY in HOME page.
    Thank you.

    And one last thing, how to make all the image of the post to be under a certain height and width?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Hardeep Asrani

    (@hardeepasrani)

    Support Team Volunteer

    Hi,

    Could you please explain your first question? Which part are you talking about?

    And for the second, you could try using the following:

    .single img {
        width: 600px !important;
        height: 400px !important;
    }

    Let me know. 🙂

    Regards,
    Hardeep

    in category say “uncategorized”, when a post is created under that category, it came to top right corner, so how about we used TAGS instead of that

    if i create TAGS “Program”, so instead of “uncategorized”, i want “program”
    Image: Example Image of What I want

    Theme Author Hardeep Asrani

    (@hardeepasrani)

    Support Team Volunteer

    It’s possible but if done with tags then it will display all the tags that are tagged to that post, so would you like to do that?

    yeah

    Thank you for your kind HELP

    Theme Author Hardeep Asrani

    (@hardeepasrani)

    Support Team Volunteer

    Try replacing the following code in the index.php file:

    <span class="meta-category">
    	<?php $category = get_the_category(); if ($category) { echo '<a href="' . get_category_link( $category[0]->term_id ) . '" title="' . sprintf( __( "View all posts in %s", 'the-funk' ), $category[0]->name ) . '" ' . '>' . $category[0]->name.'</a> '; } ?>
    </span>

    to:

    <span class="meta-category">
    	<?php the_tags(); ?>
    </span>

    Regards,
    Hardeep

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to make View post in using tag instead of category’ is closed to new replies.