• Resolved oldalmuhely_team

    (@oldalmuhely_team)


    I made a simple template for WP. I tried the importable XML provided by the WordPress team to ensure, that my template functions well in every situations. But it faild ?? If I write a post with a single [gallery] tag in it (ceratinly in HTML not in Visual part!!), it does not display a gallery in the blog , just write the [gallery] tag, as it was in the HTML part of my post in the editor. And I examined, the [gallery] tag does not work properly with any of it’s attributes too.
    But WP should display a default styled gallery every time I write a gallery tag in my post, or not??
    Now I wrote a function with preg_match, and other ideas to handle CAPTION(it does not work too!!), and GALLERY tags. They works fine, but I’m anxious, that I faild with understanding the theme making principles. What would be the problem with gallery display??? PLZ HLP!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • But WP should display a default styled gallery every time I write a gallery tag in my post, or not??

    Only if there are images attached to that post.

    Thread Starter oldalmuhely_team

    (@oldalmuhely_team)

    First, thanks for your help and reply! But sorry to say I have attached images in the post! Therefor I can’t understand this behavior of my WP. But do you really sure WP has to display my [gallery] tag as a visual satisfying, usable gallery???

    Why are you writing preg_match functions to deal with shortcodes? If you use the_content(), the shortcodes will be expanded for you. I’d suggest reviewing Theme_Development.

    Thread Starter oldalmuhely_team

    (@oldalmuhely_team)

    That is my trouble, I use the_content to display post content, but the galleries aren’t displayed properly, [gallery] tag stay unchanged, and visible for users. I’ve already read the Theme developement, and I’m familiar with the main concepts. But what can I do now??

    Thread Starter oldalmuhely_team

    (@oldalmuhely_team)

    This morning I solved the probleb…using esmi recommendations. Thanks to You!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[gallery] tag not properly display’ is closed to new replies.