Support » Theme: GeneratePress » Display media-category pages?

  • Hi

    I currently use another theme and I use some of my media-category pages as landing pages with a gallery of images present.

    Please see https://www.staging1.primaflorafloristaccrington.co.uk/media-category/aqua-arrangements/ as an example. Another example is /media-category/bouquets/

    For it to work in my current theme I have added “add_filter( ‘term_description’, ‘do_shortcode’ );” to my functions.php

    I cant get the media-category pages to show using generatepress. Can you please let me know how to enable this functionality?

    I am currently developing a generatepress version of my site on a staging site.

    I would be very grateful for any help you can give me.

    Thank you.

    Best regards

    John

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    I don’t believe media categories come standard in WordPress? Are you using a plugin like this?: https://wordpress.org/plugins/wp-media-library-categories/

    Let me know 🙂

    Hi Tom

    Thank you for the quick response.

    No I don’t use any special plugin.

    It works on the Astra Theme and also worked on the Customizr theme I used before that.

    Fairly recently, after one of the wordpress updates, a problem arose whereby although the page showed everything perfectly well wordpress showed a message at the bottom of the screen to say something like “We cant seem to find what you are looking for” and provided a search box.

    I looked on the internet and found other people had experienced similar problems with some of their pages and the solution was to add the following additional css:-

    .no-results .page-content {
    display: none;
    }

    Best regards

    John

    Theme Author Tom

    (@edge22)

    Strange, I’m not aware of a media-category URL in WordPress by default.

    Your URL is no longer working. What exactly happens now? Does anything show on the page at all?

    Hi

    Yes I was trying something out which I thought was on the staging site but was actually on my live site!!!

    The site is back to normal now and the url’s work. There are links at the bottom of the home page to which I am going to add once I’ve added sufficient content to the other pages.

    I use “the grid” and utilise the brilliant filter feature, which means people can go to a product page, say wedding flowers and chose which type of wedding flowers they would like to see by just clicking the appropriate word above the grid.

    Since I had created all the media-categories to facilitate filtering it seemed a shame not to use them as landing pages.

    It does work but to allow images to show I have to use the “add_filter( ‘term_description’, ‘do_shortcode’ );” in my functions.php and “the grid” will still not work so I use envira gallery. I don’t know the appropriate shortcode which would enable “the grid” to work.

    I have tried out various plugins for media categories etc but decided not to keep any of them. Is it possible that some elements have remained enabled in my website even though I have deleted all the
    plugins?

    There doesn’t appear to be anything in the database as I use the advanced database cleaner plugin which identifies orphan tables, options and schedules and I regularly backup the database and have a clean up.

    I know its an unconventional thing to do, using media categories in this way and the creators of wordpress would not have expected this to be a requirement so perhaps i’m just lucky that some themes by chance allow it to work?

    Thank you for taking the time and trouble to look into it for me though.

    Best regards

    John

    Theme Author Tom

    (@edge22)

    I’m still not able to get that site to load.

    Since I had created all the media-categories to facilitate filtering it seemed a shame not to use them as landing pages.

    How exactly did you create those media categories? Where in the Dashboard?

    Is it possible that some elements have remained enabled in my website even though I have deleted all the plugins?

    Not really, as plugins are just a collection of functions that do things. Without those functions, the things cease to work/exist.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.