Custom URL for Tag/Category results

  • Unknown's avatar

    Hi! I wonder if the following is possible:

    I would like make a custom URL for the results people get by selecting a tag ou category on my blog. Maybe a list of posts names and the first lines of the text or a grid of images.

    Is that possible?

    Thanks!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    You could use the Display Posts Shortcode and then add attributes to configure things the way you want them.

  • Unknown's avatar

    Hi Richard! Thanks again for your help!

    I didn’t know about those shortcodes. That will really help! I would like to know if I can customize two thing about that:

    1. Can I change the size/type of the font on the results page?

    2. This one is tricky… I don’t like to use featured images on my posts. I used to, but I don’t anymore. But I see I have to have them ir order to see images on my results page using the shortcode, right? So, is there a way to hide the featured images on the blog? So the reader would not see them on the first page of the blog? Is that clear?

  • Unknown's avatar

    1. Can I change the size/type of the font on the results page?

    Yes, we can do that. I looked at your draft page with the shortcode and just as an example, this puts the title on one line, makes it larger and sets the font back to normal on the excerpt.

    .display-posts-listing .title {
        display: block;
        margin-bottom: 15px;
        font-size: 150%;
    }
    .display-posts-listing .listing-item {
        margin-bottom: 40px;
    }
    .display-posts-listing .excerpt {
        font-weight: normal;
    }

    So, is there a way to hide the featured images on the blog? So the reader would not see them on the first page of the blog? Is that clear?

    Yes, we can do that by targeting blog pages using the “blog” CSS class set in the opening body HTML tag. This would also eliminate them from the standard category/tag/archive pages as well. This would be the CSS.

    .blog .entry-thumbnail {
        display: none;
    }
  • Unknown's avatar

    Thanks, Richard. This will help a lot! Have a great weekend!

  • The topic ‘Custom URL for Tag/Category results’ is closed to new replies.