Gallery by BestWebSoft
[resolved] Conditional Tag Path to Gallery Page (6 posts)

  1. toddmelinn
    Posted 3 years ago #

    I'm currently using Widget Logic on my site and am attempting to customize the widgets for my gallery pages, however, I am unable to discern the correct path to my individual gallery pages. The URL to one the gallery pages is siteroot/gallery/gallery-2/ and I've tried several different conditional tag queries without success
    The following queries have all been tried. Any assistance with the query path to my gallery page would be greatly appreciated.
    Thank you :)


  2. toddmelinn
    Posted 3 years ago #

    It looks wordpress thinks my gallery pages are index pages...is there any way to assign a page template so that I can reference the gallery page(s) with a reference tag? I'm also using reference tags for a dynamic <div> every other page in the site works correctly except for the gallery pages. My gallery pages inherit the properties from my index page template.

  3. toddmelinn
    Posted 3 years ago #

    Nevermind...ended up using NextGEN...works the way I would expect it.

  4. lukian
    Posted 2 years ago #

    I had a similar issue where my custom theme defaulted to using the index.php template instead of the gallery-single-template.php. In the WordPress Admin section, there was no option to select that template.

    For me this was resolved by opening functions.php, where I register my post-types, and making sure that 'gallery' was a registered post-type.

    Hope that helps

  5. lukian
    Posted 2 years ago #

    Correction on the above, which didn't work:

    It's a workaround, but all I did was create a home.php file and had that replace my index.php as the default homepage. Then I put the code from gallery-single-template.php into index.php.

    This is not the right way to do things, but i was stuck and this worked!

  6. bestwebsoft
    Plugin Author

    Posted 2 years ago #


    Could you be more specific?
    Do you want to display widget on specific gallery pages?

    Best regards,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gallery by BestWebSoft
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic