Edit category template code

Posted in: Newspaper
Post count: 15

I have imported a category template and assigned it to a specific category of my website. Now i need to custom edit programmatically this template. I need to add a woocommerce conditional check on the logic of how a user can see a post (wc_memberships_user_can( $user_id, $action, $target, $when = ” ))

Anyway for this, i need to find the file responsible for it, so maybe i add it before the posts loop?

P.S I am asking for this site, https://opzionaria.ch/ with license ending in ….57648d94569e . i haven’t yet created a support account though. Is there a way i can add multiple licenses to one support account. I have bought like 5 licenses and find it hard to manage each with different support account.Thanks

Post count: 21065

Hello!

Please provide more information about what you need to achieve exactly with that category template(which one).

A solution for sending a screenshot/video is this:
Download, capture, send: https://www.techsmith.com/jing-tool.html
After making the screenshot, you will have a link, paste it here.

You can let only one if it is easier for you.

Thank you!

Post count: 15

I have one parent Category ‘Servizzi’, which has two under categories ‘Summit’ and ‘Dribbling’. A user with a membership to ‘Summit’ should be able to see in the list/loop only articles belonging to cat Summit, same with a user with membership Dribbling, only articles from cat Dribbling.

A user with both memberships ‘Summit’ and ‘Dribbling’ should see articles from both.

The change i am looking to make is in the listing of posts. Someone with no access should not be able to view it even listed.

So which file is responsible for editing the post loop of this category template?

https://www.screencast.com/t/kUadIHKYrBEl

Post count: 21065

Hello!

If you want to modify the loop from that category, then the file for this shortcode can be seen in td-cloud-library/modules/tdb_module_loop.php

Hope that helps you!

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.