Teo Maragakis
Forum Replies Created
-
Forum: Plugins
In reply to: [WPML Multilingual CMS] [Plugin: WPML Multilingual CMS] Free vs. paid versionThey removed the free version (that they promised to keep around). Weak.
Forum: Fixing WordPress
In reply to: Don't send comment notification to adminFound it! Tools -> Settings -> Email address.
Forum: Fixing WordPress
In reply to: Custom Fields vs TaxonomyHi Dasha,
I think since you posted this 7 months ago, you already solved it, I’m replying for the rest.
Taxonomies are categorizations, they are divided in hierarchical (like post categories) and non-hierarchical (like post tags).
Custom fields are data that you add to a custom or built-in post type.
Dates should be custom fields (so the user can search from/to date, or see what’s on in the current week).
Countries could be a hierarchical taxonomy.
Cast list should be a non-hierarchical taxonomy.Theater could be a non-hierarchical taxonomy, but there wouldn’t be a way to add the URL, you need custom code for that.
I know I didn’t explain very well, but that’s how I’d do it.
Forum: Plugins
In reply to: User role without access to the backendNow a small update on how my customer area project is going:
The CaPa Protect plugin used to recognize the custom roles created with the User Role Editor plugin, I updated at some point (unfortunately without noting the version) and now it does not, it only sees the default hardcoded roles.
I’ll have to contact the developer.
Forum: Plugins
In reply to: User role without access to the backendFirst you need to use function that checks what the user cannot do. For example, if you want all users to redirect apart from admins, try:
if(!current_user_can( 'manage_options' )) { wp_redirect(get_option('siteurl')); }
Try this and let me know if it worked!
Forum: Plugins
In reply to: User role without access to the backendI am solving it slowly. I’ll write what I am doing for reference. First of I added the User Role Editor plugin and added the role “Customer” with same rights as the Subscriber role. Also changed the default role for new users to “Customer”. Now I have to find and add the following PHP commands somewhere (?):
- Get logged user role
- if role is customer redirect to website root
Forum: Hacks
In reply to: If category has no sub-categories (only posts)??Any way to count children categories?
Forum: Hacks
In reply to: If category has no sub-categories (only posts)??Custom taxonomy would be a good idea but I’ve worked too much on the website as it is to change the complete logic of use. Also, it already includes around 200 artists, it would be too much work changing it. I’m sure the easiest solution is with wp_list_categories() but I do not know how to do it exactly.