Questions tagged [columns]

WordPress displays different information about posts, pages, users and other content in a vertical format in each of the above screens, called columns. Visibility of each column can be toggled in the Screen Options.

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

How is better to store at DB 1-side relationsip from CPT to many Taxonomies Terms ID's?

Wordpress (with plugin for Custom Fields stored at DB Custom table like Pods/MetaBox/JetEngine/etc) Logic: Custom Post Type (CPT) witch data will be stored at database Custom Table. Custom Taxonomy ...
user234970's user avatar
0 votes
1 answer
16 views

I want to horizontally align items in multiple parallel columns under one column block

I have set up a cover block. Inside the cover block, I have created four columns. Each of those four columns contains a cover block inside them too. In these cover blocks, each has a title, a text ...
M Shaz's user avatar
  • 1
0 votes
0 answers
17 views

Row loop inside different columns

Help to create a wordpress loop with the row inside different columns from 2 categories
Jobin Jose V's user avatar
0 votes
1 answer
20 views

column values not showing after merging two custom post types

So i have 2 post types 'loads' and 'invoices'. Invoices is also used to show loads posts. I need not Invoices posts at all. What I have Done: I used this code to show loads posts on Invoice page. ...
Ravinder singh's user avatar
0 votes
1 answer
34 views

the_modified_author() returning blank

I'm attempting to display custom columns that return the last modified date and the author that updated it. function rh_custom_page_columns( $columns ) { $columns['last_modified'] = 'Last modified'...
Ryan's user avatar
  • 43
0 votes
0 answers
30 views

sort by date in users

add a column with date, I bring the date with a shortcode from a plugin, I have the problem when trying to order it. how could i do function fc_new_modify_user_table( $column ) { $column['vencimiento']...
fakasmile1's user avatar
0 votes
0 answers
52 views

Make a column full width in an inner section

What I want to achieve is to make a template element of a column and its content. Since I cannot make a global template of a column I have put it into an inner section, and made the inner section the ...
Enthuziast's user avatar
0 votes
1 answer
49 views

Last Logged In Sortable Column

I've added the code found here and slightly modified it so that the "Last Logged In" column is sortable but it doesn't sort the column correctly when I click it, can anyone see anything ...
Hype Matrix's user avatar
0 votes
1 answer
146 views

Sorting Users page admin column with ACF field

I have a CPT called Companies. I created an ACF relationship field called user_company that gets displayed in the Users profile page. When a user registers, I have to go in and assign them to a ...
Amy Ling's user avatar
0 votes
1 answer
136 views

How to sort custom sortable column by custom table value

I have a custom table with data in it that I am showing in a column. I would like to make this column sortable. Lets say that the custom table has three values for the sake of simplicity. row_id, ...
BlenderTutorials.org's user avatar
0 votes
1 answer
20 views

orderby property of query on pre_get_posts returns incorrect value

I am attempting to implement some custom sorting logic for a column but are facing issues in the pre_get_posts hook. The value of the orderby property on the query is not returning the value ...
Kasper Östberg's user avatar
0 votes
0 answers
27 views

Is there a way to create multiple columns of text with alphabetical ordering going down each column not across the columns

My developer says that in wordpress, when creating multiple columns of text (which are all hyperlinked), it is NOT possible to do the alphabetical order vertically, ie in alphabetical order as one ...
Sub Chan's user avatar
0 votes
1 answer
44 views

How to get blocks with same heigh in columns?

I put 3 paragraph blocks in a 3 columns block. I'd like the paragraph to have the same size (and ideally to have the vertically centered). Is there a way to achieve this with Gutenberg? I tried using ...
Plouff's user avatar
  • 101
0 votes
1 answer
164 views

Sortable column with custom data by date

I would like to sortable a column with custom data. I have a custom post type named "events" and I have a custom meta_key named "_start_at". My column is sortable but when I click ...
Gpi's user avatar
  • 101
0 votes
1 answer
38 views

CPT Columns doesn't show categories

I have the following code creating some Columns and reordering them to my CPT. // SHOW THE FEATURED IMAGE function pessoas_custom_columns_data($column_name, $post_ID) { if ($column_name == '...
Horacsio's user avatar
1 vote
0 answers
41 views

Add Content Column to Custom Post Type backend

I have a basic custom post type: function create_posttype() { register_post_type('guestbook', array( 'labels' => array( 'name' => __('Guestbook Entries'), ...
Josh Rodgers's user avatar
  • 1,143
0 votes
1 answer
43 views

Hide custom column in admin template screen (Elementor) [closed]

My plugin adds a custom column to admin posts and pages screens but it's also adding it to the Templates (Elementor) screen. I know users can hide this themselves, but I'd rather do it in my plugin. ...
KSechrist's user avatar
0 votes
1 answer
28 views

Hide Published text from custom post types column

Is it possible to hide the 'Published' word only on custom post types column? as in image and just leave the date and time?
jamesnelson82's user avatar
0 votes
0 answers
52 views

How to set 'column-primary' to backoffice 2nd column by default

I'm customizing the way custom posts are displayed in the backoffice. I'm trying to shift the section that appear on hover (I'm refering to the four buttons Edit, Quick edit, Trash, Preview) in the ...
Enrico's user avatar
  • 11
0 votes
1 answer
209 views

custom filtering admin columns

i'm trying to add custom filters to a CPT job-offer, for example, i'm starting by locations. the filters works fine except when i try to filter by all locations. this is my code function ...
Soufiane Nda's user avatar
1 vote
1 answer
80 views

How can I replace the text at the top of a custom column into a icon?

Question How can I change the text at the top of the column into an icon ? Example a star or a thumbs up. Like the "Comment" field. There is no text, just a icon. The files for the plugin is ...
bjovaar's user avatar
  • 21
0 votes
1 answer
117 views

Creating a new Sortable Column in WordPress Admin

I have a press release category on my WordPress site and there is too much posts being submitted and its taking up space in the All Posts and Published section of my WordPress admin, I'm wondering if ...
overdeveloping's user avatar
2 votes
1 answer
464 views

Is it possible to create column width presets in Gutenberg?

Gutenberg gives you some good choices out of the box but is it possible to add a custom preset? I understand I can change the columns manually but was hoping for a preset to make it easier on the ...
paper_robots's user avatar
0 votes
1 answer
21 views

Custom column on CPT not showing correct value when meta data not set

Basically I have 2 custom columns in the 'edit.php' of my custom post type. What I need is when $item_type is set to 'page' but there is no page selected, 'No selection' is echoed (same for when '...
wp_dev99's user avatar
0 votes
1 answer
231 views

Add taxonomy column with meta field (ACF) content

Trying to populate the column with meta field, this way (ACF): add_filter('manage_artist_custom_column', function ($content,$column_name,$term_id){ $term= get_term($term_id, 'artist'); switch (...
aitor's user avatar
  • 585
1 vote
0 answers
49 views

how to remove thumbnail and LiteSpeed Optimization column in media library list-view?

I've searched on the internet, and found out this code from this link function remove_upload_columns($defaults) { unset($defaults['comments']); unset($defaults['author']); return $defaults; } ...
karma's user avatar
  • 111
0 votes
0 answers
23 views

make two custom columns sortables

I have 2 custom columns, typeconsole and console: add_filter('manage_edit-post_sortable_columns', function( $columns ) { $columns['typeconsole'] = 'typeconsole'; $columns['console'] = ...
John's user avatar
  • 1
1 vote
0 answers
80 views

WP CPT Custom Sortable Column in Admin Dashboard Sort Order Random

I am trying to add sorting to the custom posts list on the ID column in the admin dashboard, however, I would like to override the behavior of Sorting. Currently, it sorts by ascending or descending ...
Adnan Mohib's user avatar
0 votes
1 answer
46 views

Create a trailing block with programatically generated Gutenberg columns

I'm pulling some custom data into wp-block-columns with three columns in each row using this shortcode (example code): $array_chunks = array_chunk($array_of_posts, 3); foreach($array_chunks as $posts) ...
Trees4theForest's user avatar
1 vote
0 answers
13 views

Columns Block no longer appears when searching

I have a strange problem. the core columns block has gone missing. https://wordpress.org/support/article/columns-block/ I can no longer search for it. Has anyone else experienced this? Odd thing is I ...
Theresa Newman's user avatar
1 vote
0 answers
20 views

Set specific number of columns for top level term on product category archives

I'am a bit desperate about this issue im facing. I have tried so much o code tweaking, asking for help and nobody really could help me, maybe this is the place where some one could at least explain ...
Kostas Skutulas's user avatar
0 votes
1 answer
31 views

how can sort my column

How can I add order? add_filter('manage_articles_posts_columns', function ( $columns ) { if( is_array( $columns ) && ! isset( $columns['post_views'] ) ) $columns['post_views'] = ...
Mohammad Kamali's user avatar
2 votes
1 answer
863 views

How do I change the default sort order of a custom column on the posts page?

I have a fancy custom column on the posts page in the WordPress admin. I have this column set up to be sortable. The first time that you click on the column header, the URL in the address bar changes ...
Nicholas Cardot's user avatar
1 vote
1 answer
50 views

How to add 'total' value to custom column title on the posts list page

I have added custom column to all posts page by this code: // ADD NEW COLUMN function len_columns_head($defaults) { $defaults['post_len'] = 'Symbols'; return $defaults; } // SHOW POST LENGTH ...
dmitry's user avatar
  • 11
0 votes
1 answer
452 views

Responsive loop with 3 columns inside row then 2 columns

I created a loop in my archive page displaying the posts in 3 columns (33% width) inside a row with 100% width. Each column is a post. What I would like to achieve is to make the loop more flexible ...
Mathieu Préaud's user avatar
0 votes
1 answer
43 views

Getting post attchment URL to populate a CPT Admin Page Column

Just trying to work out how to get the url of a file attached to a Post and displaying that in the admin page for that CPT. The file is attached to the post via an ACF file upload field called '...
Daniel Florian's user avatar
1 vote
1 answer
723 views

How to show first name and last name in custom post type columns

With the below code I am showing the user who created the custom post type's entry but only their username. This isn't helpful enough as I want to show their full name ie: first name and last name but ...
user10980228's user avatar
0 votes
1 answer
1k views

Putting footer links into different columns

Essentially I would like to drag each footer menu item to the column of my choice. I've created 3 widgets for each footer column, but I can't figure out how to separate the navigation menu items on ...
user188223's user avatar
-1 votes
2 answers
735 views

Custom sorting in post columns by ACF Pro Select Field

I'm adding a custom column to the admin display for a custom post type. The custom column should display the selected options from an ACF Pro select field. Instead, it always triggers as containing ...
aronmoshe_m's user avatar
0 votes
1 answer
30 views

Undeletable column in Posts

there is something strange happening on my site. I have in Posts section column called post_views which isn't created by any plugin and it is also undeletable. I've tried searching column name in ...
Jan Radosta's user avatar
0 votes
2 answers
2k views

How to get a count of all posts in foreach loop and split into fourths

I have this loop: <?php $categories = get_terms('my_category'); foreach ( $categories as $category ) : ?> I want to split the posts into 4 separate div columns so that post titles will be ...
semory's user avatar
  • 27
2 votes
1 answer
2k views

How to make 2/3 width column in Gutenberg

I created a 2 column layout block, gave the columns block a CSS class of .first-col-2-3 and added this CSS to my theme: .first-col-2-3 > div:nth-child(1) {background:red;width:67%!important;} ....
javaandy's user avatar
  • 127
1 vote
0 answers
37 views

adding images column to admin edit columns not working for SVG

I added the ability to use SVG as graphics on my site. They are showing up fine on the front end, but I'm having 2 issues on the backend. The problem is that I want to show post thumbnails on the ...
rudtek's user avatar
  • 5,884
1 vote
0 answers
23 views

Columns are so narrow I can't edit

First, I am not a coder. Why are the columns so narrow that I can't see enough to edit? I need to be able to link the text but can't see it to click on it. So frustrated.
Sue's user avatar
  • 11
0 votes
0 answers
52 views

How to center entire columns on a page, and have it stay responsive?

Page in question: https://princetonfireandsafety.com/contact-info/ I just want the two columns to be centered in the page (but the text left-aligned still). I would prefer to use the columns block ...
Silbernagel Enterprises's user avatar
-1 votes
1 answer
23 views

Images at the same vertical position in multiple columns

I have in a page a multiple column layout (in my case 5 columns, but that doesn't really matter). In each column, I have a heading, then an image and then some text, so like so: Heading 1 ...
Mlha's user avatar
  • 1
2 votes
4 answers
2k views

Why is the new Gutenberg editor so narrow, and how to make it wider?

I'm beginning to like Gutenberg, but I find it too narrow, particularly when working with the 'Columns' block. Why is it so narrow, and can it safely be made wider? I could try doing so with CSS, but ...
Theo d'Or's user avatar
  • 168
-1 votes
1 answer
243 views

How to set value in a custom column in wordpress?

It doesn't work at all. function owner_columns($columns) { $columns['views'] = 'Owner'; return $columns; } add_filter('manage_edit-listing_columns', '...
Lokesh Das's user avatar
2 votes
1 answer
2k views

Replace existing content from specific WooCommerce admin orders list column

How do I either replace or completely remove a column in the Woocommerce Orders list in admin? I know that there's possible to just uncheck the "Shipping address" column from the "Screen Options" and ...
Peter Westerlund's user avatar
0 votes
1 answer
92 views

Wp-query and column blocks

Maybe this is asking too much, but the new blocks give a simple way to add columns that work well responsively. ie you can just drop image thumbs into column blocks and they work perfectly on mobile ...
Richard H's user avatar

1
2 3 4 5