Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2020-05-14 18:51:30

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Backlight albums in Wordpress

Sorry I posted the original in BL2 by mistake

Hi,
I watched the video that Matt posted earlier on using the JSON api and inserting the album ID into a WP post.

I've tried this today but I cannot display the gallery I was linking to. I inserted this [backlight album="55496"] having identified the album ID.

JSON is turned on and saved. I cloned my original WP page template and Theme template from their original BL1.2.2 versions and created a new BL3 WP theme that I exported and activated in WP. Ought I to have created the page template and them from scratch in BL3 for this to work?
The unfinished blog post is here https://tomowens.openpoint.co.uk/blog/2 … istancing/
Grateful for any pointers.

Last edited by tomowensphoto (2020-05-14 19:05:12)


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#2 2020-05-14 20:50:46

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight albums in Wordpress

did you try entering the shortcode in the WP text editor rather than the preview editor?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2020-05-14 20:59:05

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Backlight albums in Wordpress

Hi Rod,
Yes, in the text editor


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#4 2020-05-14 21:04:48

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight albums in Wordpress

You mention cloning from  BL1 template so there’s a chance that it was using an Okapi page template.
Is the template for the WP theme now using a Pangolin page template?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2020-05-14 21:40:22

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Backlight albums in Wordpress

The page was a Pangolin page that I cloned from. Okapi has not been a part of my installation since I converted to Pangolin pages in BL1 beta testing. Okapi is not installed in my setup.
All templates show the type as Pangolin Page, Pangolin Album Set, Pangolin Album, Pangolin Galleria, Pangolin Theater, Pangolin WordPress Theme.
The WP theme today is as saved in BL3. The old one was from BL1.2.2 - I never needed to change it until I thought I ought to for the new JSON stuff today.
Ought I to delete the new theme and page templates and recreate based on my previous settings? Maybe cloning was the wrong thing to do...


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#6 2020-05-14 21:46:39

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Backlight albums in Wordpress

Hi Rod,
Just a thought but is this feature reliant upon BL publisher? All my publishing is from LR and the source shows as that in the Publisher/Galleries/Albums page. Obviously if I inserted a single image into a post previously then I'd have to upload the image to WP's gallery to pick from.

Last edited by tomowensphoto (2020-05-14 21:47:22)


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#7 2020-05-14 21:51:17

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight albums in Wordpress

just to make sure, the Wordpress add-on was updated to the latest version? Can you double check your Backlight Modules page?

If that’s not it, try a creating a new theme from a new page template. Just a quick test. If a new theme works but an older, cloned theme doesn’t, that will give Matt something to look into.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#8 2020-05-14 21:54:08

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight albums in Wordpress

tomowensphoto wrote:

Hi Rod,
Just a thought but is this feature reliant upon BL publisher? All my publishing is from LR and the source shows as that in the Publisher/Galleries/Albums page. Obviously if I inserted a single image into a post previously then I'd have to upload the image to WP's gallery to pick from.

No, I’ve used the short code to insert Lightroom published albums.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#9 2020-05-14 21:58:46

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Backlight albums in Wordpress

Hi Rod,
My BL WP theme is definitely showing as 3.0.2. I'll try a quick new theme from a new page template.
Thanks for your help and being an early riser!
I'll report back with the result.


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#10 2020-05-14 22:34:56

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight albums in Wordpress

I think I see the problem. Looking at the page's source code I'm seeing that the gallery is being inserted but that columns is set to 0.

It should default to 5 columns if columns are not designated. Try adding columns="5" to your short code.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#11 2020-05-14 22:40:47

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Backlight albums in Wordpress

Hi Rod,
I tried creating a new page template specifically for WP based upon the settings in my BL1.2.2 version. I created a new WP Theme based on that page template, exported and activated it in WP but all I get is a grey bar where I presume the gallery ought to be displayed.
I've just tried adding the columns parameter to two posts and refreshed the pages but just the same grey bar

Last edited by tomowensphoto (2020-05-14 23:40:26)


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#12 2020-05-14 22:46:34

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight albums in Wordpress

I can see the album div in the source code, but no images are included. Can you double check the album id? Mine are 6-digit, yours is 5-digit


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#13 2020-05-14 22:54:10

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Backlight albums in Wordpress

Just double checked and the gallery ID were correct at 5 characters for the albums but the top level in this case 'Documentary' is a 6 digit number. I've tried inserting that and the two galleries within it to the post - 3 grey bars.
I'll see if changing the columns in the page template makes a difference.


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#14 2020-05-14 22:56:32

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Backlight albums in Wordpress

No just wider grey bars


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#15 2020-05-14 22:59:19

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Backlight albums in Wordpress

I'll hide these test posts now and I've just gone back to the BL3WP theme I created earlier.


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#16 2020-05-14 23:00:21

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight albums in Wordpress

which album on your site are you trying to insert? Just want to make sure it's an album and not an album set


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#17 2020-05-14 23:11:25

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Backlight albums in Wordpress

Good question Rod,
I was trying to insert https://tomowens.openpoint.co.uk/galler … down-2020/ (5 digit code) and is definitely an Album and I tried to also insert https://tomowens.openpoint.co.uk/galleries/documentary/ which is the Album set and had a 6 digit code which ought not to have worked but all I get is the grey bar displayed.
I'll make the post with 3 IDs in Public again. Just two Album shortcodes in there now

Last edited by tomowensphoto (2020-05-14 23:15:13)


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#18 2020-05-14 23:43:34

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight albums in Wordpress

Maybe use the old WordPress troubleshooting technique of looking for conflicting plugins.
Try disabling all plugins. If the problem goes away, start enabling one by one until it comes back.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#19 2020-05-15 00:01:34

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Backlight albums in Wordpress

Tried that but no change in that the problem remained with plugins disabled and page refreshed


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#20 2020-05-15 00:23:50

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight albums in Wordpress

I'm out of ideas. Matt will need to take a look.

wait....one more idea....is WordPres up to date?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#21 2020-05-15 00:47:59

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Backlight albums in Wordpress

Hi Tom, you can make a post private so it doesn't show up in your feed, but you are still able to share the link so we can take a guess what's going on.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#22 2020-05-15 00:57:55

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Backlight albums in Wordpress

Hi Rod,
I'm on 5.4.1 which is the latest version available for me.
Hi Daniel,
A test post is here;


https://tomowens.openpoint.co.uk/blog/2 … de-insert/
Making them private and sharing the link caused the Error 404 page to kick in so this test post just shows what I get from inserting the code - a grey bar

The blog is currently on the cloned pangolin page and theme taken from the last working version which was 1.2.2. saved in BL3

Last edited by tomowensphoto (2020-05-15 01:05:01)


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#23 2020-05-15 01:55:28

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Backlight albums in Wordpress

Hmm... this works for me: http://lab.danielleu.com/blog/testing/ smile

Please have a look at line 49 in '/blog/wp-content/theme/yourtheme/inc/theme_backlight_shortcode.php'

It should look like this:

$response = json_decode(request("https://.... deleted by admin...../" . $album), true);

Last edited by Daniel Leu (2020-05-15 02:19:31)


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#24 2020-05-15 02:10:01

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 321
Website

Re: Backlight albums in Wordpress

Hi Daniel,
Line 49 has that code.
Your link takes me to a 404 grey and pink page


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Offline

#25 2020-05-15 02:17:55

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Backlight albums in Wordpress

tomowensphoto wrote:

Hi Daniel,
Line 49 has that code.
Your link takes me to a 404 grey and pink page

So I really don't understand how private posts work in WP big_smile big_smile big_smile

Here we go:
private_testing.png

Did you do any custom .htaccess magic on your site?


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

Board footer

Powered by FluxBB