Top new questions this week:
|
For auditing issue, I only want a post can be trashed, but not deleted - for all users.
So I have a plugin like
add_action('before_delete_post', function($id) {
wp_die(0);
});
But …
|
I've figured out how to implement pagination into WordPress archives, etc.., but the content isn't being returned correctly. Instead of /2013/01/ returning January 2013's archives, it instead returns …
|
I'm trying to use the new wp.media uploader frame for an app I'm building. I've read up a lot on other questions, blog posts, etc etc.
The code I pasted below is working already quite fine and even …
|
I'm trying to configure the comments screen in the backend to fit my project.
I've already been able to take a first step by resolving this question:
Comments screen in backend, how to disable Quick …
|
I have a website that lists businesses in different cities (this is a niche site, so all businesses have the same "classification").
For starters I created a CPT for locations and a taxonomy called …
|
I'm trying to cut down on the amount of code that is in my theme options function. I'm adding my settings like so: add_settings_field($k,$v,$callback,$the_options,$the_group,$args);
This works for …
|
I thought I was making headway in my WordPress Development education until I ran across the Boilerplate for WordPress plugins and it uses a class object. I'm fine with that and understand those …
|
Greatest hits from previous weeks:
|
I have 2 custom post types 'bookmarks' and 'snippets' and a shared taxonomy 'tag'. I can generate a list of all terms in the taxonomy with get_terms(), but I can't figure out how to limit the list to …
|
I'm using the following inside the wp_nav_menu function to create a select dropdown menu where each menu item is an option in the select dropdown...
'items_wrap' => …
|
Can you answer these?
|
So I'm working on a plugin for creating a questions/answers system that's as simple and well-integrated as possible (not unlike this site) but am stuck at the creation of the custom post types.
You …
|
OK, so I'm looking for a way to sort a specific taxonomy by archive date using the site URL.
Say the custom taxonomy ("sort") value is "fruit" then then you would currently get all the posts marked …
|
I need to use in my permalinks same titles for different post types and as far as I know the slug must be unique so the permalinks cannot be:
custom-post-type-1/hello-world
…
|