The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
1k views

Custom column for changing post status via ajax

I'm currently trying to implent a new custom column at the page manage screen that will let me change the status (published/pending) of the different pages via an easy toggle link. From what I've ...
0
votes
0answers
10 views

Possible to overlap featured images? [migrated]

I'm trying to make the featured images on the front page overlap like this - So far I have managed this - Some images are landscape and some are portrait. I want all the images to be the same ...
0
votes
0answers
14 views

How do I count columns on a custom WPDB query?

How would I count the columns of a custom WPDB query? This does work although I need a different kind of output: $sql_assoc = "SELECT * FROM test"; $num_cols = count((array) current($sql_assoc)); ...
1
vote
1answer
167 views

First post full width, rest in two columns

Here is my loop <?php if ( have_posts() ) : ?> <?php /* Start the Loop */ ?> <?php $i = 0; while ( have_posts() ) : the_post(); ?> <?php if ($i++ == 0) : ?> ...
0
votes
1answer
559 views

Display posts in three columns by category

I've seen posts which probably answer this, but unfortunately the answers are all a bit technical without telling you where the code should go? At the moment I have my posts directed to a blog page. I ...
0
votes
1answer
234 views

Make custom post type column sortable

My site has two custom types: Auction and Lot. Lots are connected to an Auction via the post_parent field. I added an Auction column to the Lots list in the admin area. function ...
0
votes
1answer
259 views

Display WP posts in 3 responsive columns

I'm trying to display 6 random WordPress posts in 3 responsive columns, 2 rows, by using: <?php $the_query = new WP_Query("showposts=6&cat=1&orderby=rand");?> For example, ...
1
vote
1answer
30 views

Taxonomy Custom Column - 'manage_{TAXONOMY}_custom_column' filter only passing 2 arguments

I am trying to add a custom column to the tables shown on the Tags & Categories admin pages in Wordpress. I have created a function, and added it as a filter using add_filter( ...
0
votes
0answers
22 views

set custom value on default admin columns based on row values

I added some foreign key to wp_comments db table. Some comments could be indipendent from post. For these comments I've comment_post_ID set to 0. So i need something like: ...
2
votes
0answers
51 views

Column sorting with emtpy meta values

I am trying to sort my custom post type columns in the admin area. There's two ways I found to do this: At first this was my way to do it, however I got some strange behaviours. If a meta value is ...
0
votes
0answers
78 views

Adding custom fields to the Quick Edit screen - puzzled about the column concept

We've been told that: The quick_edit_custom_box action hook will not fire unless there are custom columns present. (Source^) If so, then adding a custom field edit functionality to the Quick ...
0
votes
0answers
44 views

how can i sort column of taxonomy added by show_admin_column?

I just to discover the option of register_taxonomy called show_admin_column. It adds a column to the post manager in the admin back end, all it is ok at this point. however, the column added is not ...
0
votes
2answers
34 views

creating single page with 2 columns while theme is 3 column

I am using Diapason theme , which gives me an option for both 2 column or 3 columns...My requirement is 1:- all pages except home page (static) should have 3 columns 2:- Home Page should have two ...
3
votes
3answers
2k views

Custom columns on edit-tags.php main page

I am trying to add custom columns to edit-tags.php for a custom taxonomy that I have created. This custom taxonomy is called equipment-types and it only applies to one custom post type called ...
0
votes
1answer
178 views

Adding first and last classes to three column layout in Bones boilerplate

I'm using the bones boilerplate theme in Wordpress and on the homepage am displaying a section containing three columns for the latest three posts in Wordpress. The bones theme uses the responsive ...
0
votes
0answers
18 views

Add slide option on columns

Created 3 column on my site via Special Recent Posts plugin. But I want add slide option on this columns. Like this: How can I do it?
1
vote
1answer
25 views

Wordpress make Grandparent and great grandparent filterable in custom columns

Is there a way to make a Custom Post Type's grandparent and great grandparent filterable in the CPT's columns? For parents I use : esc_url( add_query_arg( 'post_type' => $post->post_type, ...
0
votes
1answer
39 views

Add column in WP user but it goes wrong

I add a column to users page, it goes wrong when checkbox is not in correct position. This is my code, can you help me to move checkbox to the correct position? public static function ...
0
votes
0answers
173 views

Change column of row action (Quick Edit) links in WP_List_Table

Is it possible to move the "Edit | Quick Edit | Trash", etc... links (A/K/A "Quick Edit links") from a table generated by a custom post type registration into a different column other than the "Title" ...
0
votes
1answer
112 views

4 column-loop ordered alphabetically with entries grouped (and labeled) by their first letter

I found some code for creating multi-column WordPress loops and I found some code for entries grouped by letter of the alphabet. But I can't quite get the code to work together...the order is a bit ...
2
votes
1answer
91 views

Custom admin column disappearing when using Quick Edit [duplicate]

I have added a featured image column to my posts in the WP admin. This all works fine except when using the Quick Edit feature. Upon update, the column disappears, or rather isn't returned by the ajax ...
0
votes
1answer
61 views

custom sortable column

I am trying to create a extra column for year in my timeline custom post. I can create the extra column and I can actually get it sorting and it works correctly but then all my pages then dont seem to ...
0
votes
0answers
67 views

Columnizing custom post type based on custom taxonomy

my first question here, so I'll try to be thorough. I have page on which I'm trying to sort a custom post type with around 350 different artists by a custom taxonomy. The custom taxonomy is basically ...
0
votes
1answer
1k views

Pods CMS: How to add custom column to Adnvanced Content Type

I'm using Pods plugin (ver 2.2) to create some 'Pods' or Advanced Content Types, as they would refer to it, which are like custom post types but are actually separate from WP, blank slate, in their ...
1
vote
2answers
745 views

Remove Post Page “View Post” Link

I have created a custom post type, but it just to list some data on a page and it doesn't have any single.php. How do i disable so on the post page when i click publish it doesn't show the "View ...
0
votes
1answer
58 views

Trying to achieve row posts below category with multiple loops in custom tax

hoping someone here can help a noob. Ideally I'd like to get a featured post from a category 'Featured Club' to display above three posts from the same custom post type. I've got the following ...
5
votes
1answer
122 views

Add quick edit fields without custom colum

This question is a follow up on that answer I wrote. Let's say I want to add something to the quick edit box for the Posts post type list table. To do so, I have to add a custom column because of the ...
1
vote
1answer
87 views

Sort by site/blog column in Multisite

I use WordPress Multisite and made a plugin that adds columns with some data. My code is based on this WP Engineer article. The key function in WordPress Multisite is manage_sites_custom_column. And ...
-1
votes
1answer
32 views

Specify Table Column Width on a Page

I currently have the following html on my Wordpress page <table border="5"> <col width="50"> <col width="100"> <tbody> <tr> <td> ...
0
votes
0answers
88 views

Add column in edit.php for a custom post type

I need to display an additional column on the WP Admin custom post types edit screen, but can't seem to make it work. My custom post type is "objet" . Here is the code i have written in ...
0
votes
3answers
745 views

Custom Post Types: Custom columns with Title submenu?

When viewing non-custom Posts, you get the likes of this submenu: I'm not using a title - I'm using custom columns with two fields concatenated: Is there any quick and easy way of adding the ...
0
votes
0answers
157 views

displaying child pages in columns when on a parent page

I would like to display sub pages in columns. Some parent pages have a lot of sub pages and the scroll is very long. I am currently using the below code to display sub pages. ...
0
votes
2answers
103 views

How to create three columns from selected posts

I would like to create a three columns with 3 selected posts. They must include image and title. Like this http://i.imgur.com/tXg0bv3.png How to create it in CSS and HTML? This is very important for ...
1
vote
1answer
25 views

How to customize categories panel?

how to customize this screen ? example : add new area or remove description section
0
votes
1answer
54 views

Placing the content of one post in two side by side columns, newspaper style

I'm trying to place two columns side by side like a newspaper does and display one post's content within both. I've been trying to explode the content at my h4/90 words and echo the rest of the ...
0
votes
1answer
33 views

Change default post style to columns

I'm trying to format each post that the user uploads. I need the paragraphs to be floated to the left in the first column, and the images to be in a floated left in the second column. (I've tried ...
1
vote
1answer
467 views

Custom admin columns for ALL custom post types

I have the following function which is working perfectly for my 'video' custom post type to display customized columns in the dashboard. I have decided the way my plugin will work is to have custom ...
0
votes
1answer
43 views

Problem with $post_id object's property

Dealing with retrieving CPT metadata I find out two methods get_post_meta() and get_post_custom() to return the value(s) of the custom fields with the specified key from the specified post. Both ...
0
votes
1answer
71 views

custom field in admin columns

Im trying to understand how to get the custom field incr_number into admin columns. However im failing to understand and im googling but not finding a direct answer. It cant be that hard surly? ...
0
votes
1answer
53 views

Split function “the_tags” in 2 columns

I have the following function that returns the tags of the current post: <?php the_tags( '<ul> <li>', '</ li> <li>', '</ li> </ ul>' ); ?> Example: Is ...
2
votes
3answers
260 views

How to remove Gravatar from Username column

How to remove the Gravatar image from Username column in the All User admin page?
9
votes
1answer
5k views

Adding Category/Tag/Taxonomy Support to Images/Media

I've been trying to add category, tag, or custom taxonomy support to images (or all media, though I'm only concerned with Images). I've got it part-way figured out with: add_action('init', ...
1
vote
1answer
405 views

Extend the wp_users table

I'd like to to extend the wp_users table in my WordPress' database. Why? I want people to add more information about themselves when they sing up at my website. I know how to extend it, but I'm ...
0
votes
2answers
195 views

Two columns in homepage each with one category

I modifying a wordpress template to be left with two columns on the main page with the following structure: The first 4 are of a category and the last 4 of another The index code is: ...
0
votes
2answers
593 views

Custom Columns WordPress Admin

I am just about finished creating custom columns through the WordPress admin panel. The custom post type I am using is called "slides". I figured out how to add the column titles and all of the ...
1
vote
2answers
2k views

Wordpress Custom Menu Widget Style

I am wondering if anyone knows the best method for splitting 1 custom menu widget (located in my sites footer) in to 2 columns. There are a total of 8 links, so I would like it to be split in to 2 ...
1
vote
3answers
2k views

Style custom columns in admin panels (especially to adjust column cell widths)

I am using Wordpress as a CMS for a project which makes extensive use of custom post types. I need to display columns in admin panels for each custom post type in a different way. I've already ...
2
votes
1answer
97 views

order of date column in custom post type

I have a custom post type and trying to set custom columns, the date column is there by default, and it appears right after the title. Do I have to unset the date first and then re-apply it, or is ...
2
votes
1answer
88 views

Hook to edit an column on comments screen?

At the moment I'm doing add_filter("manage_edit-comments_columns", function($columns) { unset($columns["author"]); $columns_one = array_slice($columns,0,1); $columns_two = ...
0
votes
2answers
288 views

Split custom post list into two columns

can anyone help me split this custom post type into two lists? i'm a novice PHPr but have been left with this code by someone who said it was too complicated... function listforcontinent($name, $top ...