Skip Navigation

[Resolved] Random Character

This thread is resolved. Here is a description of the problem and solution.

Problem:
In a template used to display posts there is an odd ']' character appearing.

Solution:
The template contains shortcodes and while editing the client has left a stray closing square bracket in place.

This support ticket is created 6 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by StephenD4019 6 years, 5 months ago.

Assisted by: Nigel.

Author
Posts
#909575
5.PNG

Company details
Click on company
Renewals accordion.

Some entries display ]
I cannot work out why this is. It happens on certain companies.

Please see attachment.

#909692

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Stephen

I cannot tell from the screenshot what's happening there. I visited the page and there are no clues in the markup, I would need access to be able to take a look in the back-end if that's okay?

I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site, even though I don't intend to make any changes.

#909774

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-06-07 at 10.12.50.png

Hi Stephen

In the cell for renewals in your Template for Companies you are missing a closing square bracket for the types field shortcode for opening hours.

#910808

When I click on Toolset Dashboard and template for companies it goes to this page:

hidden link

I was previously informed the number should be 1353.

I have made the amendment in both templates but still have the same issue is different browsers in private mode.

#911014

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-06-08 at 09.18.40.png
Screen Shot 2018-06-08 at 09.21.45.png

Hi Stephen

You won't necessarily see any changes you make until you flush your cache.

For some reason you have two Template Layouts with the same name (Template for Companies) but different slugs.

One (id 1354) is assigned to the Company post type and would be used to display all company posts.

Except the second (id 1353) is *individually* assigned to each of the company posts and is the one therefore being used to render the posts. (My advice would be delete this one and just use a normal template that is automatically used for all posts of that type.)

You can see that in the first of the screenshots.

You should also be able to see in the second screenshot that the Layout id 1353 (the one actually being used) still contained a stray closing square bracket.

I have deleted that and you should find (after clearing your cache) that it no longer appears.

#911507

Thanks.