Auto ThickBox Plus
[resolved] Auto thick box for category list posts (4 posts)

  1. zouper
    Posted 3 years ago #

    Anyway you can have auto thickbox for posts? I have a category listing and I want to have this attribute added automatically to the posts appearing there. Any idea how to do it or if I can do it with thickbox?


  2. attosoft
    Plugin Author

    Posted 3 years ago #

    Hi zouper,

    I don't konw what category list is. It is output by wp_list_categories() tag or get_categories() function? Or it is the code you wrote manually?

    In my understand, you want to show a post with ThickBox on the current page. Is that right?

  3. zouper
    Posted 3 years ago #

    So Basically Ι use this plugin:

    All these posts in that category appear in a div or tab. I would like for them to appear automatically in a lightbox when clicked on. Could I do that with the plugin, or in any kind of way? I am currently using lightbox plus for the images but I would definitely switch to thickbox if it can do this. The example is in:

  4. attosoft
    Plugin Author

    Posted 3 years ago #

    Lightbox needs rel="lightbox" attribute, and ThickBox needs class="thickbox" attribute to overlay a content. But "List category posts" plugin does not seem to have parameters to add rel/class attribute to each list item.

    I can think of the following solutions for now.

    • Modify "List category posts" plugin to implement a parameter to add rel/class attribute
    • Write PHP code to add rel/class attribute using filer hooks
    • Write JavaScript code to add rel/class attribute

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Auto ThickBox Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic