Skip Navigation

[Resolved] Invalid HTML generated for button

This support ticket is created 3 years, 1 month 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by gerhardS 3 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2210371

I have following code in a view:

[button
url="[bloginfo_siteurl]/browse-posts?wpv-category=[wpv-attribute name=name_of_category]"
label="Browse [wpv-attribute name=name_of_category] Posts"
size="medium"
target="_self"]

This used to work fine. But now after not having checked on the website for some time, invalid HTML is generated by this:

Button Text
"/browse-posts?wpv-category=Sport" label="Browse Sport Posts" size="medium" target="_self"]"

The shortcode is defined like this in functions.php:

// Shortcode for Site URL
function bloginfo_siteurl_func( ) {
return get_site_url();
}

add_shortcode( 'bloginfo_siteurl', 'bloginfo_siteurl_func' );

Apparently get_site_url() returns nothing. You can see how it looks on

hidden link

Wordpress is 5.8.1
Toolset Views is 3.6.1

Can you tell me what happened here?

Kind Regards,
Gerhard

#2210611

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

That is really strange and I'm not sure that button element you are using is from Toolset? as Toolset do not offer such button shortcocde.

Can you please share problem URL and admin access details and I'm happy to review and check whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2212363

My issue is resolved now. Thank you!

You were right. This is a shortcut from Birch Theme and I have to contact their support about it (or not use it anymore).

Kind Regards,
Gerhard