Tagged Questions
0
votes
0answers
19 views
Missing custom posts
I've created a new document custom post and it now appears all of the posts aren't being displayed.
The count is showing the correct number but i can't see all of the documents available, it only ...
1
vote
1answer
17 views
Create a page that will be used to create a custom post type
I have created an 'event' custom post type and now I want to create a page that will allow users to create a custom post type from the front-end. Is there a standard way of doing this? I could ...
1
vote
0answers
16 views
Admin Area Custom Type Search By Meta Fields Without Title & Content
I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code:
...
0
votes
1answer
46 views
Custom post type isn't working
I just built up a beta environment for testing my new Wordpress site. I didn't migrate the database; I did my own installation again and ported over my theme (it's a simple theme) to my new instance. ...
0
votes
3answers
43 views
Add a 'guide' image to custom post type admin page
I've created a custom post type and on the admin page for that post type I want an image displayed that can act as a guide for the users uploading images. Is there a function that I can use to insert ...
0
votes
0answers
69 views
Admin Filter by custom field
I use this for make a filter for post in my admin, on a specific custom post type,
but it don't work, the query don't update and i get an empty list
add_action( 'pre_get_posts', ...
0
votes
0answers
41 views
Searching custom post types in administration backend
I have multiple registered custom post types.
When I connect to the administration backend, and click on a specific custom post type, enter some text into the input on the top right and then click ...
1
vote
2answers
100 views
Customize my custom taxonomy table in Admin panel
I've registered a new taxonomy for my custom post type, and now I'm trying to edit the taxonomy table.
I've successfully removed the description column but I can't figure it out how to edit column ...
0
votes
1answer
49 views
Is there a hook between clicking on “Add new” and the edit screen of a new post?
At the moment i use 3 custom post types to create "exhibitions", "guided tours" and "regular events".
My idea is to combine these events to one custom post type "event" and by creating of this custom ...
0
votes
1answer
89 views
Require custom post type if is_admin() - template doesn't show up?
In my functions.php I require PHP files which register custom post types, if I'm logged in as an admin.
if (is_admin())
require_once(TEMPLATEPATH . '/custom-post-types/cpt.php');
This works ...
3
votes
1answer
412 views
Filter custom post types in admin not working
Hello I'm wondering if anyone can help me figure this out. Essentially when I click on my custom post type 'Portfolio' in admin, I see a list of 'Services' next to posts, but when I click on one to ...
0
votes
1answer
105 views
Function to add custom HTML into head in custom post-type list page
How can I add custom HTML/PHP file into head where custom post-type list showing like this ?
Any Wordpress function can do this ? or I can only do by JS(jQuery) to append my custom content ?
0
votes
2answers
691 views
Filter by custom Field for Custom post type Admin Listing
I have a custom post type "Article" which has a custom field "issue" that is the id number of a "issue" post type that i am selecting using a simple select box.
I want to add a drop down of issues ...
2
votes
1answer
78 views
Show admin help message across custom post type parent and child posts
In my custom plugin, I am using the following code to display an info / help box.
This is working great for the main admin edit screen that lists the custom posts, but how can I extend this to show ...
0
votes
1answer
49 views
Prevent users from changing post status
The scenario is this:
An agent enters the post data (custom post), but can only do a pending for review or change the visibility of the post. He cannot change the post status manually.
I have ...
3
votes
1answer
58 views
How to get search results in the backend admin on a custom post type?
I have a custom post type books and have many meta boxes for it...etc But in the backend, I am not able to search anything.
For example I try to search the custom post type id in the search field, ...
1
vote
1answer
180 views
Get parse_query filter to return slug instead of id
After much headache in the last week I feel like my problem is almost solved. I have been attempting to customize the admin edit.php page of custom post types to display and sort/filter custom ...
1
vote
0answers
111 views
Custom Post Type Nav to Subpage
I've registered a post type for an audio plugin, the post type is "Custom Players" in the admin and has its own tab on the admin sidebar.
I'm just curious if there's a simple way to move this out of ...
4
votes
1answer
99 views
Prevent reload confirmation after AJAX save
I am saving information in the admin panel via ajax. The problem I'm running in to is the "Are you sure you want to navigate away from this page" popup appear, even though everything has been saved. ...
2
votes
1answer
209 views
Add text to wordpress admin 'Add Post' edit
I'd like to add some descriptive text underneath the page title on both the list and edit post screens for the default post and also custom post types - e.g. "Below is a list of your recent blog ...
0
votes
1answer
245 views
Issue displaying multiple TinyMCE editors with WPAlchemy
I have a custom post type with a WPAlchemy admin meta box class including multiple textareas with TinyMCE editors(for adding content to the custom post template). I've gotten the editors to display ...
0
votes
1answer
108 views
Multiple custom post types on same admin page
Here's my situation....
I'm creating a plugin that will allow families to register on the site I'm working on. Each family will have 1 or more children that they need to add to their registration. My ...
1
vote
1answer
84 views
Remove rows in the manage post/page view
I'm looking for a way to remove the rows with the title, date and other stuff that's shown on the manage posts/pages screen (highlighted with red in the image below).
I know that I could easily hide ...
0
votes
1answer
156 views
How to check if post/page or taxonomy post is published by admin
Example :- 10 users and 2 admin in a site.
If the post is published by admins than
<?php ?????() { ?>
<!-- do this -->
<?php }
else { ?>
<!-- do this if posted by ...
0
votes
2answers
172 views
using the loop in custom meta is messing up 'add new' post type
When I use the following code in a (wpalchemy) custom meta box, everything works fine. That is until I pressed 'add new'. At this point, the title, slug, featured image, etc.. are being ...
1
vote
1answer
34 views
Selecting a post in Dashboard
How to make in the admin's dashboard a <select> with the list of all posts of specified post type?
I need this in order to save a post ID with set_option() call.
How to do this?
2
votes
1answer
1k views
Custom post type: Add “Edit | Quick Edit | Trash | View” links to date (if title is not shown in column)?
I've created a custom post type for my "Testimonials", I don't need a title(s), how can I write a function that Adds the "Edit | Quick Edit | Trash | View" links to "date" if title isn't shown in the ...
2
votes
1answer
251 views
How can I change the admin search posts fields?
I have a custom post type that includes many custom fields.
I would like to add them as a search target to admin search.
Currently the admin search searches only the content and the title, I would ...
0
votes
1answer
137 views
Wordpress admin for a custom post, hide/collapse the main “title” and “description” boxes
Is there a way to hide the main "title" and "description" boxes for a custom post?
I have a custom post with a large meta box. I won't be using the regular title and description so I would like to ...
1
vote
1answer
579 views
How to show custom (checkbox) field value in admin post list?
I have a custom post type for products and a custom meta checkbox field for 'Sold'. How can I show the Sold status in a column on the Products edit list and make it sortable (so it would sort all the ...
1
vote
3answers
3k views
Create a dropdown with Custom Post Types as option in admin
I need to create a dropdown menu with "posts from a custom post type" as option.
This dropdown will be placed as custom meta box.
For example, I want all posts with the custom type "Video" as option ...
0
votes
1answer
111 views
Linking to Post Types from wp-admin
Morning all,
I'm having a bit of trouble finding a function I can use to link to a post type from the admin area. I'm actually using something as simple as:
<a ...
4
votes
1answer
2k views
Load a script just to custom post type in admin
I have created a custom post type "portfolio" with something like this :
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => ...
0
votes
1answer
1k views
Custom admin post.php page
I'm working on a CPT but I need to have more control over the layout of the post/edit page (post-new.php and post.php). I thought hacking through admin_init would be the best option, but I can't get ...
0
votes
2answers
64 views
Is there a way to have the view link on manage posts page to open in a new window or tab?
Hi I am trying to figure out on how to get the "view" link on the manage posts / custom post types and pages to open in a new tab or window.
I know it is probably possible to do via the ...
1
vote
1answer
379 views
How can I filter posts by post_parent in the admin?
I have followed this tutorial and this one to add a custom column to a custom post type edit screen, showing the post parent of each post. My question:
How can I make the post parent clickable just ...
0
votes
1answer
456 views
wordpress reusable content blocks
I am using a custom post type to allow the editor of the site to add a number of blocks of content to the site - infoboxes.
Now i would like to give the editor the possibility to choose which boxes ...
0
votes
2answers
435 views
Plugin or method of allowing user to rearrange custom post types with drag and drop?
I'm using a custom post type entry to represent each person in an About Us page. When going to the About Us page, it displays the people in a side menu and if the user clicks on a person's name, it ...
2
votes
2answers
2k views
WordPress User Roles, Custom Post Types, and Admin views
My friend mentioned that there is a simple way to modify what users see in the admin sidebar based on their user role. I have a large number of custom post types, one for each user, and I need to ...
1
vote
1answer
116 views
Settings page above CPT page in admin section
I'm creating a plugin which generates a handfull or custom post types (CPT). I've create a top level menu in the admin left sidebar using add_menu_page(). I then added all CPTs to this menu using ...
1
vote
1answer
587 views
Custom post type admin search
Is it possible to search in custom post type meta fields? I have posts, with many custom meta fields. Wordpress by default search only in title and in content. How can I change it?
If you didn't ...
2
votes
1answer
745 views
Using WPAlchemy metabox values in another metabox
I'm building a quite complex custom post type structure and I would need some help regarding my metaboxes.
What I want to do:
Thank's to the have_fields_and_multi() function, the user enters data ...
1
vote
2answers
851 views
Sort admin area by custom Event Date field
There are several questions in here about sorting custom items in the admin section. However, I cannot find a specific answer anywhere. Here's my specific problem:
I'm using MagicFields to create ...
7
votes
1answer
322 views
Remove the “View” Link in Post Admin
I have a custom post type that I'm just using just to keep data in but I sometimes share it with others, and I don't want any confusion when the "view" link appears in the admin column.
Is there a ...
1
vote
3answers
2k views
How to add custom columns to Custom Post Type admin screen
I have another dumb question, but I can't get one thing :)
I've found this very good article on creating custom post types:
http://thinkvitamin.com/code/create-your-first-wordpress-custom-post-type/
...
3
votes
1answer
921 views
Is it OK to move admin menu items?
I have a site with eight custom post types. Each is registered with 'menu_position' => 5 (below the Post menu). A side effect of having more than four CPTs is that the Media menu now appears in the ...
2
votes
1answer
1k views
Custom post admin filtering by post meta (the date)
I've created a custom post type for events that uses a custom field to retrieve the date for the event. It works ok and I'm able to filter the displayed results using meta_compare to compare the date ...
0
votes
2answers
138 views
How to customize admin posts based on the user who is logged in
We are building a site that will have 10-15 photographers posting content.
There will be a common blog + each admin has their own portfolio to manage. "Portfolio galleries" and "portfolio pages" are ...
3
votes
3answers
730 views
jQuery UI in Admin (Best Practice?)
Maybe someone has prior experience with this, but when I include the jQuery UI 1.8.9 file within my admin_head I break the functionality of the dashboard (i.e. popup for adding featured image, drag ...
1
vote
2answers
451 views
A simple script to allow sorting of custom posts in admin?
I found this on wordpress.org forums. tested it and works fine. When i changed the variables to my own it failed. I checked it thoroughly (!) for hours. i can't see where it's going wrong.
...