Skip Navigation

[Closed] Insert dynamic Taxonomy image and text for archive pages built with Oxygen

This support ticket is created 4 years, 10 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
- 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)

Author
Posts
#1567347
Bildschirmfoto 2020-03-29 um 19.34.40.png

I currently have a custom post type called "Einzelhandel" and created a custom Taxonomy with it. This custom Taxonomy also has custom fields like coverimage and icon. I want to create an archive template with the coverimage, taxonomy title and icon.

This is an example of how the end result should look like (also see screenshot).
hidden link

I tried using the help from the views shortcode reference , but nothing worked.

I tried the following :
[wpv-taxonomy-field name='wpcf-coverfoto']
[wpv-taxonomy-field name='wpcf-icon']
[wpv-taxonomy-archive info="wpcf-coverfoto"]
[wpv-taxonomy-archive info="wpcf-coverfoto"]

What shortcode do I need to dynamically insert the taxonomy name or images? Thanks!

#1567619

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

You can display the custom term fields using the Types shortcode - you can display the following shortcode on a View listing terms and on a term archive page.

[types termmeta="coverfoto"][/types]
[types termmeta="icon"][/types]

More info:
=> https://toolset.com/documentation/user-guides/custom-content/displaying-wordpress-term-fields/#displaying-term-fields-with-views-without-writing-any-code

To display the taxonomy archive related information, you can use the shortcode:[wpv-taxonomy-archive]
=> https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-taxonomy-archive

Please let me know if you require further assistance with your issue.

#1567781
Div data-lazy-src=
Div data-lazy-src=
Div data-lazy-src=
shortcode cover.png
shortcode icon.png
shortcode name.png
Frontend.png

Hey Minesh, thanks for your help.

I tried using your instructions and came up with 2/3 problems solved!
I used the shortcode elements with oxygen and your given shortcodes to display the taxonomy name, the icon and image (see "shortcode" screenshots and link: "hidden link")

The issue is though that I can't edit the shortcode images and I also can't use the large image as a background image.

Perhaps the solutions lies in a php return value function? (see "div" screenshots)Oxygen allows to return a php code. That might be able to solve the problem so that I can return the image as a background image, not making me lose the ability to edit it.

#1567973

Minesh
Supporter

Languages: English (English )

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

The thing is that Toolset has limited integration with Oxygen builder:
=> hidden link
=> https://toolset.com/documentation/user-guides/using-toolset-with-oxygen-page-builder/create-tem
plates-for-custom-post-types-with-oxygen-and-toolset/

In addition to that, I can see there is left margin coming from the div. Where as you can see with the following screenshot where I highlight the div with class "ct-section-inner-wrap" contain the margin:left: auto as well as padding:left:15 properties. If I disable those CSS properties I see the left margin and padding is gone. It looks like its coming from your theme.
Please check the following screenshot:
- hidden link

#1567983

Minesh, I understand it has limited integration, but I am not a coder and I need help! I don't know how to implement the custom image field as a custom background image. Isn't there a way to input it via php?

Also I could care less right now about the left margin. That's not my concern.
My main concern is rendering the taxonomy image as a background image. How do I do that? What would you recommend?

#1568009

Minesh
Supporter

Languages: English (English )

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

Maybe we can use the PHP function return value. Can you please share admin access details as well as how can I reach at the place where I can add the PHP function return value?

*** 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.

#1568041

Hi Minesh, I'd rather not give access to the site as you requested. Also I checked the reviews on your profile and they aren't good. I don't feel comfortable giving you access. Therefore I'd rather have you send me some code snippets to try out myself if that's okay?

#1568069

Minesh
Supporter

Languages: English (English )

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

Do not worry about, I'm not going to make your site down. I will just work on the test page you shared to check the possibilities:
=> hidden link

You can set up a test site where I can play with or send me a duplicator package of your site. I do really need to know what plugins/themes you are using.

If you want - I can assign this ticket to another supporter with whom you are comfortable. Please let me know your decision.

The topic ‘[Closed] Insert dynamic Taxonomy image and text for archive pages built with Oxygen’ is closed to new replies.