The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
15 views

Set div columns in a loop by post count

I'm trying to post images from a custom post type into columns based on the amount of posts that are returned in the loop. This is my code: <?php // args $args = array( 'numberposts' ...
1
vote
1answer
15 views

Adding Page URL to the Pages Admin Table

I want to add the Page URL as a custom column to the Pages admin table. Here is where I am at with the code. Code is in the theme's functions.php. function lrh_modify_page_table( $column ) { ...
0
votes
2answers
18 views

Make a custom column sortable by a value from a different custom post type

I've created some custom columns to display my custom post types more attractively in the admin section - the columns are mostly custom fields. Mostly, this works absolutely fine, and I can sort by ...
0
votes
0answers
53 views

Loop breaking after each category instead of posts-per-page property

I need to have my menu page layout in this format Totally I have 67 posts so I want 3 columns in this way in first column I need to have 15 posts and in remaining 2 colums 30 and 30 all this columns ...
0
votes
0answers
8 views

term_id missing for customizing category column

I wanted to add a custom field (a ) to a custom category, loosely following this good tutorial : http://wpthemetutorial.com/2013/02/21/adding-custom-meta-to-wordpress-taxonomies/. For editing, ...
0
votes
0answers
46 views

Breaking WP_Query loop into rows with variable width columns

I'd like to create a Boostrap grid of posts where sticky posts take 6 columns (.col-md-6) and normal posts take 3 columns (.col-md-3). Posts to be sorted dynamically. So in one row there might be ...
0
votes
1answer
26 views

display wordpress user who published a pending post of another user

I have a custom post type, when I view my posts of this type in the dashboard I see: Title Author Date Added as well as a few more I have added My question is how can I display (like the author ...
2
votes
1answer
52 views

How do I set the default admin sort order for a custom post type to a custom column?

SOLUTION AVAILABLE HERE I've set up a custom post type called clientarea, and set up several custom columns for it in the admin area - the custom columns are all custom meta fields, as you can see ...
0
votes
1answer
64 views

How to change gallery grid from 4 columns to 3 columns? [closed]

I'm using WordPress 4.2.2 running Gridsby Child theme (version:1.0.1436164618, latest update). I run my site locally using Xampp. My question: the Gridsby theme default homepage offers 4-column ...
0
votes
2answers
29 views

Output column number according to active sidebars

$sidebars = array( is_active_sidebar( 'footer-4' ), is_active_sidebar( 'footer-3' ), is_active_sidebar( 'footer-2' ), is_active_sidebar( 'footer-1' ...
0
votes
0answers
17 views

How to make a sortable comment column?

Is there a way to make sortable comment columns? I have managed to create the column and to populate it, but i don't know how to make it sortable. I've found a lot of solution for sortable post ...
0
votes
0answers
22 views

wordpress sub-menu (subpages) displayes in different columns

I'm working in Wordpress, and I'm having an issue, the sub-menus or sub-pages on the navigation, are displayed in columns of 2. So if I have the page Clients and the subpages client1, client2, client3 ...
0
votes
0answers
38 views

make custom user table column searchable

I created a new meta value on registration and have it added to the profile as well as displayed on the user list as a column. But when I search the user table with the value it doesn't return the ...
0
votes
1answer
74 views

Custome column sort by date not title

I've created a custom column. Currently they are automatically sorting by title however i want them to sort by date. I've tried adding a "query_post" like: ...
0
votes
2answers
205 views

Manage users custom column add class “num”

I have customized my admin users column to show the purchased leads of a role "lead buyer". The value of the column is a decimal (the number of leads). The "posts" column of the users table has a ...
0
votes
1answer
48 views

Excerpt showing under title in admin columns

I am developing a site for a client, but i am facing a weird issue that is excerpt by default shows under title in admin columns. This is happening for all post types including custom post types. I ...
0
votes
1answer
300 views

how to display “Edit | Quick Edit | Trash | View” in custom WP_List_Table column?

I have removed "Post Title" in admin column, and created a custom column. Is there any way to the display "Edit | Quick Edit | Trash | View" link?
1
vote
1answer
142 views

custom user table columns

I'm doing this, which according to all of the documentation I've read, should override every column value in my manage users table. For some reason it's not working in WP 4.1. Any insight appreciated. ...
0
votes
1answer
66 views

Two blogs one page

The idea is basically to create a blog, and have status updates/quotes beside the blog in a separate column. How does one go about making that happen? EDIT: The goal is not to create two separate ...
1
vote
1answer
54 views

Add last Revision of Post column on Admin Panel

How to add this column ( last revision of Post ) on All Posts Manager. I can't find discussion about this problem. Please help me or suggest me an idea. Thanks for all !
0
votes
1answer
169 views

Adding HTML tags or css classes to admin columns

Is it possible to add a custom class to the links in admin columns? I'm trying to replicate the labels below. I'm using WP 4.1 and my CPT is using 'show_admin_column' => true in ...
0
votes
1answer
256 views

initial sort order for a sortable custom column in admin

I have created a number of 'views' column in the admin area of my posts. There are several tutorials for this and I did in fact use a number of these to arrive at my end result. It works as expected ...
0
votes
1answer
130 views

How to pull posts into two columns with different image sizes using $counter variable?

I have a custom module pulling one specific category with 6 posts displaying the featured image into 2 columns. I like the first article of the top of each column to display a large image as shown in ...
-1
votes
1answer
135 views

Can't sort custom column on user.php by number / meta_value_num?

Everything else works fine but it's still not sorting by number. Would just like to know what I'm doing wrong here Here's the code function add_user_columns( $defaults ) { ...
0
votes
1answer
43 views

Centering items in a row, when you don't know how many items [closed]

I have the following custom query which outputs a set of items inside a container. <div class="container-hotel"> <?php // The Loop if ( $venue_query->have_posts() ) { while ( ...
2
votes
1answer
209 views

Adding menu_order to CPT admin page

I have a custom post type (cpt_roundtable), and am trying to add a column to the admin page showing the menu_order for each entry. This is in my functions.php file. function ...
0
votes
0answers
62 views

Add row counter in Admin area - Custom post list

Hi I add some custom columns to my custom post type listing in admin area. In my functions php: function book_cpt_columns($columns) { unset( $columns['date'] // Ocultar columna ...
0
votes
1answer
66 views

Display Custom Column in CPT Taxonomy

I am trying to add a column to one of my custom post types, but only on the edit taxonomy page. I have a taxonomy registered called "event-categories" for my custom post type "events". I can ...
0
votes
0answers
18 views

Adding 'Edit' and 'Delete' columns in Posts menu

I would like to add Edit and Delete column for the table that displays the list of posts. This is because my client does not know how to edit the post (the link appears when you hover onto the title ...
0
votes
0answers
164 views

How to make a wp_title filter hook change the title column in custom post types reliably

I have written code for a custom post type. The custom post type is loosely based on the cpt-bootstrap-carousel plugin, but only as far as functionality goes. My code makes use of the ...
0
votes
2answers
846 views

How to get my loop to pull posts into three columns

I have my page template pulling one specific category & pulling the featured image & title into 3 different columns on my site. The problem is they all pull the CSS class .proj-left how can I ...
0
votes
0answers
162 views

Custom Post Type admin order by usermeta value

I would like to allow admins(and users) to order the listing of posts by editor(custom role) last name(ASC or DES) while viewing the listing of posts in the admin area. I have a custom post type that ...
0
votes
0answers
18 views

Default custom column to off

Im currently building a plugin, that adds around 15 custom columns to a custom post type listing with meta data. When registering these columns they all default to being "on" in the screen options ...
0
votes
1answer
568 views

How can I add columns to custom post tables

I have created a custom post type. I also have added a meta box to my custom post type. What I want to do now is add my meta box as columns to my custom post table. My Custom Post add_action( ...
-1
votes
1answer
160 views

wpdb query with dynamic column name?

How can i dynamically set a column name in $wpdb query? i tried $which_column = 'phone'; $data_check = $wpdb->get_var("SELECT '.$which_column.' FROM wp_shopping_preferences WHERE wp_user_id = ...
0
votes
1answer
29 views

WPMU add custom colum

I managed to add the columns that I wanted in all the wpmu sites using: add_action('manage_users_columns', 'header_column'); add_action('manage_users_custom_column', 'manage_column', 10, 3); ...
0
votes
1answer
145 views

Custom taxonomy - custom sortable column

I've created custom taxonomy called 'cities' where you can add cities and added custom field ( radio button ) with 2 options: 'Yes' and 'No' ( never mind what that is ). Everythins is ok, I can get ...
1
vote
1answer
350 views

Vertical alphabetically post columns

I need to create a 9 column list that outputs posts sorted vertical and alphabetically. I'm getting closer, but still not there. I have two separate loops I'm working with. The first loop I have the ...
1
vote
1answer
53 views

Adding an email column to a Custom Post Types Admin Screen?

I am trying to add a column to my Custom Post Type Admin Screen that will show the author's email address. Any advice for novice coders (such as myself) that describe how to accomplish this? I've come ...
3
votes
1answer
561 views

Add “Last Edited by” column to custom post type list table

Currently I use the "Admin Columns Pro" plugin for Wordpress to modify some of the columns in the backend. The plugin contains functionality to display the post (or in my case, product) author as a ...
1
vote
1answer
305 views

Make a taxonomy column sortable in the admin?

I have a taxonomy term I have set to show as a column in the admin UI for my custom post type: add_action( 'init', 'create_asset_tax' ); function create_asset_tax() { register_taxonomy( ...
2
votes
1answer
179 views

Hide username from users list

I've hidden the username column from users administration with the following code: function modify_user_columns($column) { $column = array( "cb" => "<input type=\"checkbox\" />", ...
0
votes
1answer
534 views

Split loop into columns

I'm trying to split my loop into 4 columns. My logic is very flawed here and my layout is breaking. Such a simple problem, but I'm struggling with it. I essentially need each group of four posts to ...
3
votes
2answers
1k views

Replacing the title in admin list table

Here is my situation: I am trying to filter the content of the title column in my custom post type edit table but I can't get it working. Here is what I have tried: ...
0
votes
1answer
527 views

Divide post content in three columns

Is it possible to split the_content() into three equal size columns? I have tried to achive that by getting this code which I found here <?php $content = get_the_content(); ...
0
votes
1answer
261 views

looping widgets to organize bootstrap grids

Using twitter bootsrap I want to grid my widgets if in the same position more widgets are present what I mean: having a registered widget register_sidebar(array( 'name' => __('Footer Top', ...
0
votes
1answer
4k views

How to add class or id to shortcode HTML elements?

I have a row elements and 3 columns inside : [row] [one_third]1[/one_third] [one_third]2[/one_third] [one_third]3[/one_third] [/row] How can I add a custom class or id to [row] element ? I need to ...
0
votes
1answer
132 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)); ...
2
votes
1answer
286 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( ...
2
votes
1answer
128 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 ...