I know that this mechanism is now obsolete but there are cases where some code may still use it. So, I have a (probably silly) question about these level_x permissions. If I need to give say, level_7 to a given role, is enabling level_7 alone enough or should I also enable all the levels below ?
Thanks.
I have written a mini Plugin for a custom post type. This cpt appears on the admin dashboard menue ONLY if I delete these two lines:
‘capability_type’ => array ( ‘mycupoty’, ‘mycupoty’ ),
‘map_meta_cap’ => true,
With these lines INCLUDED the cpt DISAPPEARS from the dashboard menue.
I certainly need the cpt WITH caps assigned. Anyone help me???
The whole plugin looks like this (works fine – except this issue…)
<?php
/*
Plugin Name: My CPT-plus-Caps-Plugin
Plugin URI: https://calaoipee.de
Description: Plugin to register the book post type
Version: 1.0
Author: Calaoipee
Author URI:https://calaoipee.de
Textdomain: kastom-posttype
License: GPLv2
*/
function cpt_mycupoty_init() {
$labels = array(
'name' => _x( 'mycupoty', 'custom-post-type-capabilities' ),
'singular_name' => _x( 'mycupoty', 'custom-post-type-capabilities' ),
'menu_name' => _x( 'mycupoty', 'Admin Menu text', 'custom-post-type-capabilities' ),
'name_admin_bar' => _x( 'mycupoty', 'Add New on Toolbar', 'custom-post-type-capabilities' ),
'add_new' => __( 'Add New', 'custom-post-type-capabilities' ),
'add_new_item' => __( 'Add New mycupoty', 'custom-post-type-capabilities' ),
'new_item' => __( 'New mycupoty', 'custom-post-type-capabilities' ),
'edit_item' => __( 'Edit mycupoty', 'custom-post-type-capabilities' ),
'view_item' => __( 'View mycupoty', 'custom-post-type-capabilities' ),
'all_items' => __( 'All mycupoty', 'custom-post-type-capabilities' ),
'search_items' => __( 'Search mycupoty', 'custom-post-type-capabilities' ),
'parent_item_colon' => __( 'Parent mycupoty:', 'custom-post-type-capabilities' ),
'not_found' => __( 'No mycupoty found.', 'custom-post-type-capabilities' ),
'not_found_in_trash' => __( 'No mycupoty found in Trash.', 'custom-post-type-capabilities' ),
'featured_image' => _x( 'mycupoty Cover Image', 'custom-post-type-capabilities' ),
'set_featured_image' => _x( 'Set cover image', 'custom-post-type-capabilities' ),
'remove_featured_image' => _x( 'Remove cover image', 'custom-post-type-capabilities' ),
'use_featured_image' => _x( 'Use as cover image', 'custom-post-type-capabilities' ),
'archives' => _x( 'mycupoty archives', 'custom-post-type-capabilities' ),
'insert_into_item' => _x( 'Insert into mycupoty', 'custom-post-type-capabilities' ),
'uploaded_to_this_item' => _x( 'Uploaded to this mycupoty', 'custom-post-type-capabilities' ),
'filter_items_list' => _x( 'Filter mycupoty list', 'custom-post-type-capabilities' ),
'items_list_navigation' => _x( 'mycupoty list navigation', 'custom-post-type-capabilities' ),
'items_list' => _x( 'mycupoty list', 'custom-post-type-capabilities' ),
);
$args = array(
'labels' => $labels,
'public' => true,
'menu_icon' => 'dashicons-welcome-write-blog',
'publicly_queryable' => true,
'show_ui' => true,
'show_in_menu' => true,
'query_var' => true,
'rewrite' => array( 'slug' => 'mycupoty' ),
'capability_type' => array ( 'mycupoty', 'mycupoty' ),
'map_meta_cap' => true,
'has_archive' => true,
'hierarchical' => false,
'menu_position' => 4,
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ),
'show_in_rest' => true,
);
register_post_type( 'mycupoty', $args );
}
add_action( 'init', 'cpt_mycupoty_init' );
// add the custom capabilities to the desired user roles
$roles = array( 'editor','administrator' );
foreach( $roles as $the_role ) {
$role = get_role($the_role);
$role->add_cap( 'read' );
$role->add_cap( 'read_mycupoty');
$role->add_cap( 'read_private_mycupoty' );
$role->add_cap( 'edit_mycupoty' );
$role->add_cap( 'edit_mycupoty' );
$role->add_cap( 'edit_others_mycupoty' );
$role->add_cap( 'edit_published_mycupoty' );
$role->add_cap( 'publish_mycupoty' );
$role->add_cap( 'delete_others_mycupoty' );
$role->add_cap( 'delete_private_mycupoty' );
$role->add_cap( 'delete_published_mycupoty' );
}
]]>Want to build a WordPress website that involves:
1. Front-end User registration (with Captcha)
2. On front-end username / password for login on top of all pages. Also, login via Facebook / Twitter is allowed
3. Logged in users can create (within some configurable limit like 40 or 50) the following:
– Articles (/posts)
– Multiple Business profile pages for their companies
– Upload images (shown on front-end under Gallery link)
– Questions (that will show under ‘Ask an Expert’)
NOTE: Two Taxonomies are 1. Areas 2.Products which will have several options, Example, Areas = Dining, Drawing, Kitchen, Toilets…
Products = Artwork, Furniture, Lighting …
All Articles, Business Profiles, Gallery images and Questions must be related to one or more of types of the Two Taxonomies (Areas & Products). For example, an Article can be associated with Dining (Area type) and Artwork (Product type)
4. Admin: Advertisement management, Subscribe to Newsletter, Yoast SEO plugins are required. Admin can mark these items as Featured
=> Business page, Article, Question, Gallery Image
5. On front-end:
– Two column (most pages), One column (one or two pages)
– Advertisements & Subscribe form will be visible on all pages
– Directory of Business pages, Gallery, Article-list and Question-Answer list will be separate pages linked from menu-items.
– On the pages of List of Business pages, Gallery, Article-list and list of Question-Answers, search box will be there.
Article search by (Author name, keywords, Product, Area)
Gallery Image search by (Product, Area)
Business Pages Search by (name, location of registered user, Product, Area), Questions (Product, Area, Keywords)
– One page for each Product / Area option like one page for dining, one page for artwork.
– One page template that shows featured articles or featured images.
Q1: I can do medium PhP and handle responsive CSS. Is there a comprehensive plugin that can help build the above with minimal coding?
Q2. If a plugin like Types or ACF cannot handle most of this should I be looking at a framework like Genesis or is there too much of a learning curve for a framework?
]]>Basically, I was searching the WEB for a Jukebox that can be viewable in PC, MAC as well as iPads, iPhones, etc. I already have a website but the jukebox cannot be viewed on an iPad or iPhone or anything else that will not accept FLASH based programs which is what the Jukebox on my site was built with. The website is
www.DansPianoJazz.com
What could I do with WordPress that would aid me in creating an embeddable jukebox for my site? Am I on the right track here? I am still a bit foggy as to what WordPress is. Is it a language (scripting), does it build web pages with HTML(5)? Just trying to get a feel of what WordPress is and if it would help me accomplish what I am trying to do.
Thanks in advance to anyone who would be kind enough to give me a little direction.
Dan
]]>Planning to build a site like this:
dbvesz.hu
Do You think it is possible with wordpress or I should use another cms?
Best Wishes,
Allanon
So I’m thinking of switching to a different platform. My boss was showing me the WordPress 3 Beta, and I’m intrigued, but I’m not sure it’s the right fit for me. Will I be able to do the following with WP?
– assign administrative permissions per section of the site? Specifically, if I have a “News Admin”, I want them only editing/adding content related to the News, not mucking around with the Encyclopedia or the Fanfiction.
– allow subscribed users to submit content to ALL sections of the site, but have it reviewed by an admin before going live? I.e. we allow users to submit news, fanfiction, gallery photos, recipes, encyclopedia entries, and a host of other things. I want them to be able to continue to submit items like that, without having them go into the admin panel itself.
– are there any really good forum plugins?
– good gallery plugins? I’m especially interested in something that allows users to submit to individual folders, for example.
Basically, my site is based on the idea of community built content. Is this something that is possible in WP, or am I better off looking at something like Drupal?
]]>From what I’ve read in your great support forums there are fixes for that, so I’d like to upgrade to 2.8.1 to see if the problem is resolved.
However, I’m concerned that our website might be outgrowing wordpress and I’ve had trouble finding a definitive answer about the capabilities of wordpress for sites with a large amount of data and traffic.
We have about 1000 posts, 30 pages and we add 3 to 4 posts a day. We get about 15K to 45K visitors a day.
Should I be worried about us outgrowing wordpress or are we still too small for that to be a large concern? Any suggestions would be appreciated.
]]>