WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#6618 closed defect (bug) (duplicate)

gallery bug + enhancement: number of columns

Reported by: Denis-de-Bernardy Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.7
Component: Template Keywords:
Focuses: Cc:

Description

the current implementation theoretically allows to do something like this:

1st post: (3- column gallery)

[gallery]

2nd post:

[gallery columns="2"]

trouble is, both galleries will end up with 2 columns in this case... so it's misleading.

also, it would be nice to be able to define the default number of columns without needing to edit the shortcode of each post. an option under Settings / Miscellaneous would be nice.

Change History (6)

comment:1 follow-up: Denis-de-Bernardy6 years ago

in case this wasn't obvious, the two posts above would of course be on the blog's front page, and the style stuff probably belongs in the head area.

also, this ticket is related in many ways:

http://trac.wordpress.org/ticket/6380

comment:2 in reply to: ↑ 1 mtekk6 years ago

Replying to Denis-de-Bernardy:

in case this wasn't obvious, the two posts above would of course be on the blog's front page, and the style stuff probably belongs in the head area.

also, this ticket is related in many ways:

http://trac.wordpress.org/ticket/6380

The styling needs to be in the head, right now it causes xHTML validation problems (take a look at any of matt's gallery pages).

comment:3 ryan6 years ago

  • Milestone changed from 2.5.2 to 2.9

Milestone 2.5.2 deleted

comment:4 Denis-de-Bernardy5 years ago

  • Version changed from 2.5 to 2.7

http://scribu.net/projects/improved-gallery (haven't tested, but certainly worth integrating in the core imo)

comment:5 Denis-de-Bernardy5 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

I ran into a dup of this ticket the other day. the gist of it was: make the css gallery-specific. as in:

gallery id would be gallery-$ID

and:

#gallery-$ID {
  /* css */
}

comment:6 mtekk5 years ago

  • Milestone 2.9 deleted
Note: See TracTickets for help on using tickets.