Title: Type= Media
Last modified: March 22, 2019

---

# Type= Media

 *  Resolved [ageingdj](https://wordpress.org/support/users/ageingdj/)
 * (@ageingdj)
 * [7 years ago](https://wordpress.org/support/topic/type-media/)
 * Hi there,
    I love your plugin but would like to add the option of adding “Media”
   to the Post Type list please. I’ve already added categories & tags to the media
   library so this will give the ability to show latest images by category. Is this
   possible?

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Iulia Cazan](https://wordpress.org/support/users/iulia-cazan/)
 * (@iulia-cazan)
 * [7 years ago](https://wordpress.org/support/topic/type-media/#post-11369501)
 * Hello,
 * I am working on this and will include something in the new release.
 * When you say you added categories & tags to the media library, how do you attach
   a specific category to a specific image?
 * I am asking this because the WordPress native functionality is not providing 
   such a feature, and perhaps you are using a third-party plugin for this. If so,
   which is that? As far as I know, you can attach the images for example to a post
   and the category (as the taxonomy term) set to that post. Is this your use case?
 * Regards,
    Iulia
 *  Thread Starter [ageingdj](https://wordpress.org/support/users/ageingdj/)
 * (@ageingdj)
 * [7 years ago](https://wordpress.org/support/topic/type-media/#post-11372530)
 * Hi Julia,
    I’m afraid that I used the “Media Library Assistant” that comes with
   your plugin! When will your upgrade be please? And is it possible to let me have
   a shortcode or php to show the last three months (or 90 days) images loaded by
   category but not the uncategorized ones. Many thanks Paul
 *  Plugin Author [Iulia Cazan](https://wordpress.org/support/users/iulia-cazan/)
 * (@iulia-cazan)
 * [7 years ago](https://wordpress.org/support/topic/type-media/#post-11377216)
 * Hello,
 * I added support for the images and the date limit filters to the plugin. For 
   showing the past 3 months images you would need to use the dynamic date limit,
   and for filtering by category, just select the `Att. categories` and specify 
   the term.
 * You can find screenshots and a full example on my website, at [https://iuliacazan.ro/latest-post-shortcode/](https://iuliacazan.ro/latest-post-shortcode/).
   Please upgrade and let me know how it goes.
 * Regards,
    Iulia
 *  Thread Starter [ageingdj](https://wordpress.org/support/users/ageingdj/)
 * (@ageingdj)
 * [7 years ago](https://wordpress.org/support/topic/type-media/#post-11379646)
 * Hi Julia,
    Wow, Aren’t you clever! I’m sorry but I think I’ve broken your code.
   I’ve been playing about with it and now when I click a photo nothing happens (
   I was getting a lightbox). A couple of questions: How do I get rid of the overlay
   on the photos (to be able to see the image clearly? My Admin Bar (across the 
   top) has disappeared – is this you? Can I group the results by category, date
   or by post? Where do I paste your CSS into please. I’m sure that when I get my
   head around your code generator I’ll be ok
 *  Plugin Author [Iulia Cazan](https://wordpress.org/support/users/iulia-cazan/)
 * (@iulia-cazan)
 * [7 years ago](https://wordpress.org/support/topic/type-media/#post-11379695)
 * Hello,
 * I will answer below to your questions:
 * – the shortcode is not intended to replace image galleries, however, if that 
   is necessary the code can be adapted to work as such. What lightbox script do
   you use and which selector is that one using for the images? Do you have some
   markup from an example of how are you using it?
 * – by default, my code for the overlay is rendered when you use the as-overlay
   CSS class for the item. You can remove that and make it as you need, it is only
   a sample I added with the plugin so that you can have a starting point, but not
   necessary to use as such
 * – the admin bar should not be related to the plugin, perhaps that was deactivated
   from the back-end, from your account, and in this case, you can turn it on
 * – you can create more selections and generate more shortcodes you can embed in
   the same page for grouping items as you need
 * – the CSS can be put in the customizer additional CSS area, in your theme styles
   or even in the page content (depending on how you edit the page – if you use 
   the classic editor, I think that might work)
 * Let me know if this helps.
 * Regards,
    Iulia
 *  Thread Starter [ageingdj](https://wordpress.org/support/users/ageingdj/)
 * (@ageingdj)
 * [7 years ago](https://wordpress.org/support/topic/type-media/#post-11380316)
 * Hi Iulia,
    Thanks for you quick reply, The trouble with WordPress is that everyone
   assumes that I know as much as them!
 * I’ve got no idea what lightbox script I use and what selector it uses – all I
   know is that nothing happens when I click any photo on the page generated by 
   your code.
 * I cracked the Overlay CSS and the admin bar.
 * > you can create more selections and generate more shortcodes you can embed in
   > the same page for grouping items as you need
 * I’m sure you can, I’ve just got to figure it out.
 * Sorry for moaning
    Paul
 *  Thread Starter [ageingdj](https://wordpress.org/support/users/ageingdj/)
 * (@ageingdj)
 * [7 years ago](https://wordpress.org/support/topic/type-media/#post-11380778)
 * Hi again,
    My test page is [HERE](http://www.ageingdj.com/00-shortcode/)
 * I’ve had another go and came up with this:
    (BTW, the more I use your generator,
   the more impressed I am) `[latest-selected-content limit="999" display="title,
   date" titletag="h3" url="yes" date_limit="1" date_start="3" date_start_type="
   months" image="thumbnail" elements="19" css="four-columns tall" type="attachment"
   status="inherit" orderby="dateD"]` which shows 999 (should be all) images for
   the last three months. What I can’t figure out is how to get an extra level of
   grouping starting with this kind of menu: _Date highest CategoryA(count) thumbnail
   CategoryB(count) thumbnail Date highest-1 CategoryA(count) thumbnail CategoryB(
   count) thumbnail etc…. When you click on the category, you get all the images
   for that category and date. Does this make sense & is it possible? Thanks PS:
   Completely different question: is there a list (other than your grid) of “elements”
   showing what they display please
 *  Plugin Author [Iulia Cazan](https://wordpress.org/support/users/iulia-cazan/)
 * (@iulia-cazan)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/type-media/#post-11554120)
 * Hello,
 * I was checking the example you gave (a bit late I guess), and it no longer applies
   so I will mark this as resolved.
    You can start a new thread if you have any 
   other issues to report or questions.
 * Regards,
    Iulia

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Type= Media’ is closed to new replies.

 * ![](https://ps.w.org/latest-post-shortcode/assets/icon-128x128.gif?rev=2355649)
 * [Latest Post Shortcode](https://wordpress.org/plugins/latest-post-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/latest-post-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/latest-post-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/latest-post-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/latest-post-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/latest-post-shortcode/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Iulia Cazan](https://wordpress.org/support/users/iulia-cazan/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/type-media/#post-11554120)
 * Status: resolved