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!
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.
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.
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
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?
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.
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?
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.