Questions tagged [table]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
17 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....
0
votes
0answers
10 views

How to create a custom search form to filter data organized in tabs?

Considering that I have an Excel table that represents my "DB", I need to implement a custom search form that: retrieves data from the table, using some filters, and shows short results; opens a tab ...
1
vote
0answers
60 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 ...
0
votes
1answer
32 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 ...
0
votes
1answer
23 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 ...
0
votes
0answers
20 views

Create a custom table with column as an index

I want to create a table in my wordpress database with a column that is an index. But I can't seem to make it work with this code: $table_name_t2mtokens = $wpdb->prefix . "t2mtokens"; $...
0
votes
0answers
26 views

stop execution and Display Errors when inserting data to custom table

I created a stats table. on a daily basis I retrieve data from Post meta, aggregate it and insert it into the stats table (code bellow). function updatePostDay($postID, $month) { global $...
1
vote
1answer
34 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", '...
0
votes
0answers
18 views

CSS not working on number input nested in a table - Custom Plugin

I am having trouble getting my css to work for a number input which is nested inside a table on my custom plugin template page. I've used wp_enqueue_style() to load my css file and it has worked well ...
0
votes
0answers
13 views

Is it possible to autosort tables in the visual editor?

A client asked if the tables in his Wordpress editor could be sorted alphabetically automatically. He asks because the tables are quite long and it would be easier for him to edit them this way. (I ...
0
votes
0answers
10 views

WordPress Form and Data Table

I want to embed a form on a WordPress page that collects some information from an individual and then submits that information to an email address (from a data table) which remains anonymous to the ...
0
votes
1answer
46 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 ...
0
votes
2answers
48 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 ...
4
votes
0answers
265 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 ...
0
votes
0answers
13 views

How to use TablePress for an Admin page?

TablePress is used mostly for posts on a website. I wish to use it for data on one of my custom plugins. Is it possible to somehow tweak the functionality of the TablePress plugin so that I can use it ...
0
votes
2answers
28 views

Code is providing a row of data but not formatting it as table

I am using the following code: function seconddb() { global $seconddb; $seconddb = new wpdb('username','password','g3boat5_G3_Genba','localhost'); } add_action('init','seconddb'); // add the ...
0
votes
0answers
18 views

Sending WordPress Data (API) to SQL table

Looking for a solution that can send our WordPress checkout data to a local SQL database in certain table. We have custom form to capture data needed from user for our YII application, just no way to ...
0
votes
0answers
14 views

Home page on mobile version 2 column images

Good day, I have a question. What I am doing wrong? I need two colums on mobile version for the fruit boxes on home page. But it still one column. How I can change it? Site: https://entregasfrescas....
0
votes
0answers
14 views

Integration between Datatables Server Side Processing and Wordpress

I have a created a table using Datatables and a simple SELECT query from my Mysql database. I realized that for big amount of data, it's better use server side-processing to speed-up the records ...
0
votes
0answers
40 views

Gutenberg table spacing

I would like to reduce the spacing between rows on tables that I create. Here is a sample and the CCS that I've created so far. I've tried every thing that I could think of to get it to change but no ...
0
votes
1answer
20 views

Looking for a simple tool to update a table

What I would like. A server generates row entries every now and then. I want this entry to be sent to my WordPress site and inserted as a row in a table. How would I accomplish this as simply and ...
1
vote
2answers
104 views

Gravity Forms - jQuery in List Field [closed]

I am working on this jQuery which will eventually populate fields from the Parent field (Features) to the Children fields (Description, address, etc.) within a List Field. I have been able to get the ...
0
votes
1answer
28 views

using wordpress acf shortcods in tables goes outside the table

I want to put some audio files in a html table using wordpress default [audio] shortcode and using ACF to take the url of song. because of using two nested shortcode does not renderrd in wordpress, I ...
0
votes
0answers
36 views

What charset/collate should we set for our custom database table?

I've seen this nice topic, but my question might be slightly different. Is it good practice to set your custom DB table (i.e. for plugin, which saves utf8 text) charset explicitly , like: CREATE ...
0
votes
0answers
20 views

How to map data on CSV to web pages?

Like Contact information, descriptions, budget, prices, other numbers, on a CSV or spreadsheet, how to link it to WordPress web page? I'm using cpanel, WordPress, Tablepress plugin, elementor page ...
-2
votes
1answer
46 views

How can I create this type of table/catalog? [closed]

Hello there! I am a WP Beginner and I am banging my head on how to recreate this table/catalog. I went through a couple of plugins like Ultimate Product catalog, MyListing (paid) and most of the WP ...
0
votes
1answer
493 views

How to access custom Wordpress database tables

I have this sample code that I found online that's supposed to count the number of rows in a table. Of course... It works, but when I created my own table using phpMyAdmin... It no longer works. What ...
3
votes
1answer
70 views

Display Tables in a slider

I'm developing a site where I would like the user to be able to flip through tables, sort of like a gallery. I would like to see one table at a time, and be able to click on an arrow and see the next ...
1
vote
1answer
29 views

WordPress plugin output formatting

I'm currently working on my very first Wordpress plugin, and it is coming along nicely. I do have one question about the formatting of the generated output. At the moment, the plugin outputs a table ...
1
vote
1answer
521 views

Sum the total amount of a specific product purchased per user and display in table

I asked this in Stackoverflow but figured this would be a more specific domain to answer my question... I have a large mysql table (in woocommerce) where people can purchase items more than once. My ...
0
votes
1answer
365 views

How to build a dynamic data table with backend fields for the user

Since i am very new to wordpress, what is the best way to create a custom dynamic data table that a user can add/modify or delete data from the backend? what i need as a final table is something like: ...
1
vote
1answer
34 views

How to handle a CSV with 65,000+ rows and make it searchable?

I have a csv of 65,000+ rows. Each row only has two fields, an ID code and a Description. This csv will get updated every year or so. The users needs to be able to type in the code and get a list of ...
1
vote
0answers
48 views

The function can not create a table on MariaDB server

The function works on MySQL server well but it can not create a table on the MariaDB server. What could be the problem? public function create_table() { $current_version = get_option('...
0
votes
1answer
15 views

Table styles disappear when updating content

The tables on my website all have custom code for their style. Lately, when I go in to edit the content of the table (not the code), the style will completely disappear on the webpage when I update it....
1
vote
2answers
50 views

Why my database table not created on activation?

I try to build an plugin with an custom db table. So I include the notifications.php in the plugin index.php file. If I do a die; in the public function init() (in notifications.php), it dies so it's ...
0
votes
1answer
39 views

Is it a good idea to add a column to the posts table?

I'm making a custom theme for a client who has need of two custom post types. I'd like to join them together (it's a one-on-many connection) and thus was thinking of adding a column to the posts table ...
0
votes
0answers
334 views

How to add custom field to wp_list_table

I am trying build my own wp_list_table. And i am using this following code: https://github.com/pmbaldha/WP-Custom-List-Table-With-Database-Example/blob/master/custom-list-table-db-example.php It is ...
1
vote
1answer
135 views

Jquery not showing in homepage

*Update! Table is showing but only in Chrome browser, not other browsers. Tried in Safari and Opera and did not see table on screen. Please help! Need to be compatible with all browsers if possible. ...
0
votes
1answer
378 views

Gravity Forms - gform_field_value - query custom table breaks functions.php

Trying to prepopulate a form field with custom table value. I am adding a function to functions.php add_filter( 'gform_field_value_HomeCity', 'populate_HomeCity' ); function populate_HomeCity( $...
-1
votes
1answer
300 views

Add new MCE button for toggle specific cell background color

I'm using tables as a calendar for free dates in my schedule. You can see free dates here. http://www.zachrannastanicelipec.cz/smysly-terminy/ Now I'm using the Table->Cell->Cell Properties->...
0
votes
1answer
80 views

get the count of table rows

What is wrong in my code? It doesn't get the count but it is inserting into the database. function r_rate_recipe() { global $wpdb; $output = array('status' => 1); $post_id = absint($...
1
vote
2answers
75 views

Get Value from Column in Plugin Table [closed]

I am using Time.ly's All-In-One Event Calendar plugin. I am trying to get a value from the wp_ai1ec_event table in the column entitled "end". I want to get this based on the post_id. Since this is a ...
2
votes
1answer
167 views

HTML table from shortcode with multiple parameters

I've struck this problem, and I just can't solve it. I've come a long way with all the maths behind the table and the table being put out as a result of a function behind the shortcode. Then I also ...
0
votes
3answers
80 views

echo php values in table - strange behaviour, not all values are shown

I am currently despairing on a for me very strange behaviour when echoing php values to html table cells. I simply want to loop through an array and print out the values into a table but only some ...
0
votes
1answer
47 views

Separate by Category Post Type

Assuming i have this kind of data $query = new WP_Query(array('post_type' => 'Hotels','posts_per_page'=>-1)); but i want it to separate them by specific field (eg location) and to trigger this ...
0
votes
1answer
318 views

HTML Form Submit to table in same page

I have the form and works fine. On submit I have no idea where the data is going. I want it to go into a table on the same page. What am I doing wrong? <form id="myForm" action="" method="post" ...
0
votes
1answer
14 views

How do i can data from my custom form to a custom table

Hi i am struggling to find the correct code i need to insert the values from a custom form to a custom table i have already created. My form is as below Add a activity ...
0
votes
1answer
25 views

Table editing in Wordpress

I'm using a table in Wordpress to get my spacing right, but I'd like to remove the border completely or make it white so it isn't visible anymore. If anyone knows how to do that I'd appreciate it. I'...
-2
votes
1answer
27 views

echo spesific title get_the_title

I have two title QCM Rare I want to show the title into table header foreach($quiz_ids as $quiz_id){ echo '<th><a href="'.get_permalink($quiz_id).'" target="_blank"> '.get_the_title(...
1
vote
1answer
79 views

Change Wordpress prefix for only one table?

I have a little question about Wordpress database. I want to know: Can I change the wordpress pefix for only one table? Thet means I use on one Wordpress Page two Prefixes. If it works how I want to ...