Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [table]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

Create multiple pages with tables from json file

I have this problem on Wordpress. I have a json file with a structure like this { "obj": [ "obj1": { "field1": "..", "field2&...
user avatar
1 vote
0 answers
27 views

Wordpress Multisite - can I somehow merge the tables?

First of all, I need to say I'm not a fan of WordPress at all and I have never fully understood it. But I have inherited a multisite wordpress where anyone can register his own site. All in all, we ...
user avatar
0 votes
0 answers
18 views

Table Sorter sort by span title?

I'm using table sorter plugin to sort a table on my website. One column has only unsortable signs as content. However I'm trying to sort this column by value. It's the column IMDb here: https://...
user avatar
  • 1
1 vote
1 answer
63 views

How to add a sortable date column in an admin page?

I'm trying to add a date column to an admin table (to woocommerce order page, just to be specific, but this code is not plugin dependent). The code works for adding the column, but whenever I try to ...
user avatar
0 votes
1 answer
20 views

Some error in mysql script ? Can't working to create table

Has some wrong in my code ??? please help <?php global $lots_db_version; $lots_db_version = '1.0'; function lots_install() { global $wpdb; global $lots_db_version; ...
user avatar
0 votes
0 answers
51 views

Clone wp-admin/users.php (Users Admin Page)

I have created a new page in admin. I need to show all the users in this page(like Users admin page). The reason for this is because i want to show certain custom user roles only on this page. I tried ...
user avatar
0 votes
0 answers
19 views

Wordpress search on a custom table

I have set up a custom table in my WP DB and have it all working in the admin backend of WP with WP_List_Table where I can edit and add new entries perfectly. I have now moved on to the front-end side ...
user avatar
  • 1
1 vote
1 answer
51 views

WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?

Desired outcome I want display: none to be applied to the entire table after form submit button is clicked, because once I got the order number ( $order->get_id() ), in a second step I want to ...
user avatar
0 votes
1 answer
33 views

Register custom table for WP to use in a plugin

I am trying to add a custom table handler to $wpdb. public function __construct() { $this->register_tables(); } public function register_tables() { global $wpdb; $wpdb->tables[] = '...
user avatar
0 votes
0 answers
23 views

Is classical wordpress eidtor a good option for me to include a large table with a large number of images on my webpage?

I am a beginner at using WordPress for my website. I generally design my website using the classical editor provided by WordPress and by installing very few plugins such as Beaver Builder and code ...
user avatar
  • 101
0 votes
1 answer
82 views

Table block - Wrap table

I am using Gutenberg to create tables. Gutenberg tables have the following front-end structure : <figure class="wp-block-table"> <table> ... </table> </...
user avatar
  • 1
1 vote
0 answers
83 views

Filter table with dropdown

I'm making two dropdowns of location and category to filter a table by internship location and category. I want to make it so that a user can select one or the other and it will still filter it. I ...
user avatar
0 votes
0 answers
15 views

Would a custom table make more sense than a CPT in this case?

I am building a "multi vendor" type plugin to extend Woocommerce. There will be two types of new user roles: Vendor, and Non-Profit Org. Vendors can list their products on the site, and ...
user avatar
0 votes
0 answers
19 views

Plugins custom table not being created on activation

I'm developing a WordPress plugin and for some reason it's not creating a custom table on activation. Here's my code, I had to change the table name, field names, etc.: function exPlugininstaller() { ...
user avatar
1 vote
1 answer
39 views

input data and output table [closed]

I need a solution to do this with WP. In admin: I need to input data into database (name, surname, certification, level, date of issue). In Frontend: client can use a specific search field to search ...
user avatar
  • 111
0 votes
1 answer
29 views

create pages automatically and dynamically in wordPress

Is there an easy way to create pages automatically and dynamically in wordPress? Let me explain further: I am developing a website where I have more than 20 equal pages, with the same layout, where ...
user avatar
1 vote
0 answers
167 views

DROP TABLE with uninstall hook not working

I wanted to explore more options and thats the reason for me building my first WP Plugin. I tryed to follow the coding standards, but I am struggeling hard right now. I am trying to drop my created ...
user avatar
  • 11
0 votes
1 answer
170 views

Get All Results From Other Users That Share The Same Custom User Meta As Current User

I am pretty new to extending wordpress and trying to get my head around using Mysql and PHP to fetch data into a html table and print it on a wp page. What i have so far is fetching all form data to ...
user avatar
  • 3
0 votes
1 answer
103 views

$wpdb->delete not working for me

I have a function (see in full below) that syncs data into WP from an external database. It's a list of scheduled items. When the schedule is updated, old data should be deleted. See this snippet: $...
user avatar
  • 21
0 votes
0 answers
143 views

A dynamic table plugin to get user input

I just wonder if there is a Wordpress table plugin where the user can add some data in some certain cell and get a result in another. Just look at the following image: In a table like above, I want ...
user avatar
  • 113
0 votes
1 answer
1k views

Saving contact form 7 data into custom Table

I need save the Contact Form 7 data in a custom table because the Contact Form CFDB7 save me the information in the same colum. some one khow a plugin make this or maybe a php functions for this?
user avatar
  • 1
0 votes
1 answer
16 views

Right way to store a large set of similar information on website? [duplicate]

I want to add a list of companies' information to my website and I want to display the list in a page. Then by clicking on each company, user can see more information about that company in its ...
user avatar
0 votes
2 answers
453 views

What is my error trying to create a new table in the database?

I tried creating the tables in different ways and I always get the same error: "Error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the ...
user avatar
0 votes
1 answer
185 views

How to edit custom table data in frontend

I am trying to edit the data from the table in the frontend. when I click the edit the form doesn't anything it show only empty field Html Code <form action="" id="postjob" ...
user avatar
  • 1
0 votes
0 answers
114 views

I want to schedule email (date, time is in database->table) wp_schedule_event() not working

I want to schedule email (date, time is in database->table) wp_schedule_event() not working, I want to send emails to clients on future different dates and times from database, I am developing ...
user avatar
  • 26
1 vote
0 answers
32 views

Search bar in table in wordpress

I used this code in the table plugin. It checks data through only one column, I want the code to use all columns. const searchFun = () => { let filter = document.getElementById('myInput').value....
user avatar
0 votes
1 answer
49 views

Why Query is returning empty array?

I am trying to execute a query using the below code but I'm getting empty array in var_dump. global $wpdb; global $post; $slug = $post->post_name; $course = $wpdb->get_results( "SELECT * FROM ...
user avatar
1 vote
0 answers
33 views

Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]

I want to make Wordpress faster. So, instead of using multiple templates, I want to put sidebar(html), small css file(syntax highlighter, prism.css css content as inline directly to post, to reduce ...
user avatar
  • 111
1 vote
1 answer
67 views

Adding a Table to the wordpress database

I am using the following script to add a table to the wordpress database, but nothing is happening. I am not sure what I am doing wrong. Any advice would be much appreciated. function ...
user avatar
0 votes
1 answer
330 views

Share or sync user table data with another user table

I have a software and a wordpress installed in the same database, there is a wordpress "user" table and the software "user_soft" table. Is there any way or plugin to sync the two tables so that when ...
user avatar
0 votes
1 answer
19 views

Dynamically modify content added to table via javascript

What I want to do is quite straightforward, but I can't figure it out. Let's say you have this variable defined in your global scope of your script: var contentOfRow = "<tr><td>hello</...
user avatar
  • 35
1 vote
0 answers
20 views

User Meta Data in a Sortable Table

I have created a template that stores extra user data in to user meta, for example: how fast they row 100m, how fast they run 5km. I'd like to now display this data within a table, thats searchable ...
user avatar
  • 11
1 vote
1 answer
20 views

problems with loading posts in a table-row

I am trying to modify a code in a webpage. Currently the page has a table, table-row, table-cell structure where thumbnails which represents posts of a specific category and associated data are loaded ...
user avatar
  • 13
1 vote
0 answers
49 views

Wordpress editor not creating <p></p> tags properly in tables

Wordpress isn't creating paragraph tags properly for paragraphs in a table. For example, the following in the Wordpress text editor: <table style="border-collapse: collapse; width: 100%;"> <...
user avatar
  • 11
0 votes
1 answer
23 views

How to make wordpress use a non-wordpress users table?

I've been searching and all I can find is how to share the users table from multiple wordpress sites. I tried using define( 'CUSTOM_USER_TABLE', 'Users' );, but it's not working. I image it is because ...
user avatar
2 votes
1 answer
159 views

How can I add data to a custom column in the Users section of the wordpress backend?

Can anyone help me with adding data to a new User table column that I added? In the wordpress backend, in the Users section, I added a custom column called "Last Name". Now, I'd like to add last ...
user avatar
  • 169
1 vote
1 answer
195 views

Bulk actions redirects to "options.php" page when clicked (WP_List_Table)

I'm having a problem with WP_List_Table. I'm following a tutorial on internet (https://wpengineer.com/2426/wp_list_table-a-step-by-step-guide/) because I need to display an table on my plugin page. ...
user avatar
1 vote
0 answers
54 views

How do I get create a custom table showing the hours remaining for all customers in one page from this transactions page?

[insert_php] global $wpdb; $current_user = wp_get_current_user(); $emailAddress = $current_user->user_email; /*$emailAddress = "samplethis@youguessedit.com";*/ [YADDA YADDA YADDA CODE] "; /* ...
user avatar
1 vote
1 answer
27 views

I am trying to display information from a custom table from my wordpress users pages

to preface this I know my way around a computer but I'm no coder by any means. I have a site where users can purchase points/credits to be used for a service on the site. Each customer has their ...
user avatar
0 votes
1 answer
45 views

Duplicate rows in meta table, any known relations in WC?

I am doing a migration from very old to current wordpress/woocommerce and while investigating the data I found out that there are more than one row for a products _stock meta key. The same for other ...
user avatar
  • 115
0 votes
1 answer
1k views

Querying specific table row by current user login

I m creating a user based website in Wordpress, where each users can create an account and upload data of their records into the website. But I m having trouble thinking of how users can view a ...
user avatar
1 vote
1 answer
21 views

How can I have different theme with same booking table? [closed]

I have 2 different Hotel theme on main and sub domain. How can I have same booking table? So when a person in theme 1 reserved specific date another one could not reserve that date on theme 2?
user avatar
0 votes
1 answer
229 views

Why does changing Database Table Prefixes result in loss of content?

As to add an additional layer of security, to an eCommerce website I am working on, I have changed the default Database prefix from wp_ to wp_additional_prefix. To do this, I opened the wp-config....
user avatar
  • 348
1 vote
0 answers
74 views

Problem with tables (huge data) on Word-press site

I created bootstrap table for my word-press site.I created custom template to publish my table on my website.The problem is that my tables has a 2000 pages and each pages show 10 entries and consists ...
user avatar
1 vote
4 answers
2k views

Gutenberg table block with Bootstrap .table class

On my frontend I am using Boostrap 4, however Gutenberg block table has class <table class="wp-block-table"> so instead of creating new table style it would make more sense to append the ...
user avatar
0 votes
1 answer
128 views

Remove Line Breaks From Cell Content in WordPress

A line break in a table cell is converted to ⟨br ⁄ ⟩ when it is saved. I must remove all line breaks from the cell content else there is excessive space between paragraphs, list items, etc. It makes a ...
user avatar
2 votes
1 answer
819 views

Add table controls with wp_editor minimal editor configuration ('teeny')

I want to add the table controls for wp_editor(tinymce) initiated with teeny=>true. Here is what I have done so far (without success): <?php $tinymce_options = array('plugins' => "table", '...
user avatar
  • 213
0 votes
1 answer
503 views

How to display custom fields as table in Woocommerce

I imported around 7000 products into a WooCommerce project I'm working on, and each product has specifications, and I would like to display them in a table, like something you would see on Amazon for ...
user avatar
  • 19
0 votes
2 answers
1k views

Searching a custom WP table and displaying results in an HTML table

I have a custom table in the WP database called wp_products. It has columns titled ID, SKU, Details and Page. I'm trying to search this table via the default search box, so I've replaced my search.php ...
user avatar
  • 3
6 votes
0 answers
2k views

How can I extend the Gutenberg table block transform to allow colspans/rowspans on pasted table <td> elements?

I'm trying to allow users to paste (relatively) simple tables into Gutenberg. The editor converts the raw HTML fine but strips out any attributes/classes. For the most part this is good - I want to ...
user avatar

1
2 3 4 5