Gallery Just Better Usage and samples

As it is a shortcode:

  • From the admin wp page->Posts/Pages->Add New or Edit, select HTML in the entry form and enter [galleryjb]
  • Attach one or more images to the post or define a PostID attribute which has attachements i.e.: [galleryjb postid=123]
  • There are no mandatory attributes. As it is, it will shows the attached images if any is present in the current post.
  • Optional attributes are all those you can see in wp 3.0.4 native gallery plus:
    • link: besides “file” (= images are linked to imagefile) and the default null string (= images are linked to the attachment’s permalink) already present in wp gallery, there is now “null” (images are not clickable/linkable) and “url” (images are linked to external URLs defined in Description).
      Please note that if you choose link=”url”, the Description textbox in Media library needs to contain a url (http(s)..etc) and not a textual description. On the other hand, Description is not used by wp native [ gallery ] in any case.
    • target: boolean. if true linked objects open in a new/the same window, if false (default) in the same window
    • author: true (default) or false whether you allow this plugin’s author footer to be displayed or not (please, say yes).

Examples:

  • [galleryjb link="null"] ==> Images are not clickable
  • [galleryjb target="true"] ==> Images link to the attachment’s permalink and open up in a new page
  • [galleryjb link="url" target="true"] ==> Images link to the external URLs defined in the Description textboxes in WP’s Media library. These URLs will open up in a new page.
  • [galleryjb link="url"] ==> Images link to external urls defined in the Description textboxes in WP’s Media library. They will open up in the same page (as default).
Comments (0)