The tag has no usage guidance.

learn more… | top users | synonyms

-1
votes
0answers
23 views

How to group posts into three separate columns based on category? [duplicate]

I would like to know if it is possible to split my loop into three different columns by category. For example, the leftmost column would contain only posts from Category A, the middle only from ...
0
votes
0answers
8 views

Manage edit-post type columns custom post type separate page

I am designing a plugin with post type cars. The plugin have one page to display cars in columns (Just like posts and pages list). I used following code to add columns: add_filter( ...
0
votes
2answers
987 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
642 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
15 views

How to add columns to wordpress menu editor

Wondering if someone can point me in the right direction. Currently, I'm trying to figure out how to add columns and headings to sub menus. Naturally I want to create a basic megamenu where I can add ...
1
vote
0answers
30 views

Filter to shorten column content on edit-tags.php

I am trying to get the content of columns in the edit-tags.php page. I have been trying to do it, first I tried to get the columns. add_filter( 'manage_posts_columns', 'get_columns'); function ...
1
vote
1answer
19 views

Add Sortable Column For All Post Types

I am creating a hit counter that counts the number of page views across all post types. I have gotten it to work and the column displays for each post type showing the total number of page views. I ...
4
votes
0answers
82 views

How can I modify the content of default columns?

I have a code to add content to my custom columns, that looks like this add_action( 'manage_posts_custom_column', 'my_custom_columns', 10, 2 ); function my_custom_columns( $column, $post_id ) { ...
0
votes
3answers
953 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 ...
1
vote
1answer
1k views

Split content into multiple columns using more tag?

First of, this is pretty much an exact duplicate of: Split columns into three+ divs? But the given solution does not work (returns blank). I'm guessing it collides with qTranslate which adds some ...
2
votes
4answers
676 views

How to remove Gravatar from Username column

How to remove the Gravatar image from Username column in the All User admin page?
0
votes
0answers
43 views

Wordpress admin sort by custom column

Modify default columns function my_page_columns($columns) { $columns = array( 'cb' => '<input type="checkbox" />', 'thumbnail' => 'Thumbnail', 'sort' ...
-3
votes
1answer
28 views

Creating two Columns on a Page. [closed]

The page I am trying to edit is as follows: http://www.blackaero.com/shop-2 I am using the Wordpress Simple PayPal Shopping Cart Plugin and I want the two items I have on the page in two columns to ...
0
votes
1answer
30 views

Advanced Custom Fields: Sorting custom columns with custom fields sorts only by date

I have a custom post type – “members”. With help of Advanced Custom Fields(AFC) I’ve created a Field Group with 5 fields and assigned that group to my “members” post type. I followed this article to ...
-2
votes
2answers
42 views

Make default template two columns?

I'm sure this must be super simple, but Google isn't helping me! I am using an up-to-date WordPress and I have a two-column layout on my blog section (content left, Twitter feed right) that I am very ...
0
votes
1answer
22 views

manage posts custom column is not populating data from meta boxes

My custom post name is "employee". Here is the code for creating and populating admin columns. Columns have been created but it is not populating. Also, what is the meaning of the "10, 2" in action ...
0
votes
0answers
15 views

Manually Adjust Column Widths to Enable Sidebar?

As I've seen, the problem of having a sidebar pushed to the top or bottom of the page is quite common. I have tried many approaches to fixing this issue, but the only thing that worked for me is to ...
0
votes
0answers
43 views

Add each Wordpress menu item into individual Bootstrap column

So basically what I'm trying to do is create a custom menu that has icons the user can add/edit. Each menu item has two pieces to it, the top has an icon and then the base has the name of the ...
1
vote
2answers
519 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
0answers
36 views

Trying to create 2 columns of post excerpts - nearly there…

I'm trying to get my blog excerpts to display in 2 columns with a third column for the side bar, I've spent all day following various tuts and although I'm close (I think!) I can't get it right. ...
0
votes
3answers
502 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
37 views

How can i use on a custom db table?

I have a custom db table with some data. At the moment i just want to display an overview of the values in the table in wp admin. add_filter('manage_mycustom_posts_columns', array($this, ...
0
votes
1answer
45 views

Full width thumbnail

I have a post part that is called into my single.php and looks like this: <div class="main-content col-md-8" role="main"> <?php while (have_posts()) : the_post(); ?> <?php ...
0
votes
0answers
24 views

Can you have the users list pre sorted by specific column?

I would like to organise users by date registered every time an admin visits the users page, without having to click again from: http://localhost:8888/wp-admin/users.php I can add the date ...
0
votes
2answers
71 views

Add button in admin columns

I would like to add a button next to the column name in e.g. edit.php admin screen. I have added a printsreen showing where I would like the button to go.. I have searched for available hooks but ...
0
votes
1answer
88 views

Different “Text Widgets” in Sidebar on Many Different Pages?

Hi there I have a few questions on adding different sidebar texts to sidebars per page. On one part of my site, I have pages dedicated to individual animals. I have figured out how to change the ...
0
votes
0answers
54 views

Spliting post content into two columns

I'm using this code to split post content into two columns: $content = get_the_content(); $content_car = strlen( $content ); $content_half = $content_car / 2; $chunks = str_split( $content, ...
0
votes
0answers
19 views

WordPress Gallery defult Shortcode responsive columns

I use WordPress Gallery defult Shortcode, in setting gallery 3 columns. in my site gallery loock good. but my site in mobile Gallery 3 columns see no good, small images. My question How do I edit That ...
0
votes
0answers
41 views

show posts in two columns with different template parts

i tried to show the posts of a category in two columns on a page. Normally i do that only with CSS respectively bootstrap columns. But in this case, i need for each column a own template part. In the ...
1
vote
1answer
288 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 ...
1
vote
1answer
93 views

Order a custom post type admin screen by a second custom post type title

I have two custom post types: Products and Brands. The Product slug is 'eproduct'. The Brand slug is 'brand-listing'. On the Product admin page, I have added a custom column that lists the Brand ...
1
vote
0answers
60 views

Why does pre_get_posts() return “date” as the orderby parameter for every sortable column?

I am stuck trying to get a custom column to sort according to a custom field. I have two custom post types: Brand and Product. I would like the Product admin screen to have a "Brand" column, and for ...
0
votes
1answer
287 views

Add ASC / DESC to custom post columns

Im using the following code to create custom columns in the backend of the posts menu. add_filter('manage_edit-post_columns', 'post_edit_columns'); function post_edit_columns( $columns ) { ...
0
votes
2answers
236 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 ...
0
votes
0answers
32 views

How to display custom taxonomy grandest children in three columns, with first child as column heading?

I have a taxonomy structure thats 4 levels deep, with the name 'services_tax': Parent - Child - - Grandchild - - Grandchild - - - GrandGrandchild I am trying to get the terms selected on a custom ...
1
vote
4answers
766 views

Pages with 2 Columns

I've had a look at many of the available plugins but they all seem to be too difficult to use or do not provide enough flexibility. Plugins I've already tried: WP Post Columns Magazine Columns WP ...
0
votes
0answers
107 views

How to display custom columns for confusing custom taxonomy?

I'm trying to add to admin custom columns for custom taxonomy for a custom post type, and it's been pretty confusing so far. I've created a post type called Parceiros (partners) and assigned 2 custom ...
0
votes
1answer
101 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' ...
6
votes
4answers
7k 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 ...
3
votes
3answers
4k 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 ...
1
vote
1answer
27 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
40 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
1answer
54 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
0answers
18 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, ...
3
votes
1answer
800 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
58 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 ...
0
votes
0answers
151 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
289 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
37 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
64 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 ...