Questions tagged [table]

The tag has no usage guidance.

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

Change ul from vertical to horizontal in widget

I am trying to change the style of a widget (https://ibb.co/n3hnXP5) displayed in my home page from Timetable and Event Schedule by MotoPress plugin. The original html output of the widget is <div ...
0
votes
1answer
15 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 ...
1
vote
0answers
18 views

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

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 ...
0
votes
1answer
860 views

Dynamic data table from external json feed

First of all, while I'm fairly comfortable with code, I'm also quite new to Wordpress development, JS, and PHP so please forgive me if this is not explained very well, or a real rookie-type question. ...
0
votes
0answers
10 views

woocommmerce Html Table in product page : save select value in order and email

I Want to add table in single product page woocommerce table with dropdown list like shown in the image link 1- add table in the single product page or for certain product category 2- select value ...
0
votes
0answers
11 views

Making a simple table - with no coding or plugin

I've found many instructions showing how to make a simple table using blocks on my Dashboard. But in create new post or page there is no option for table blocks. Only paragraphs and various other ...
1
vote
1answer
28 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 ...
0
votes
0answers
8 views

Hide/display table rows according to post tags

I have a large table that I use in many posts of mine. I want this table to display the rows that include at least one of the post tags in any column, and hide the rest of the rows. So the rows ...
0
votes
1answer
22 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 ...
0
votes
1answer
13 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</...
5
votes
3answers
4k views

Removing filter dropdown in posts table (in this case Yoast SEO)

I don’t need Yoast SEO meta box for one post type so I removed it with remove_meta_box(). Removed unneeded columns in post table by unsetting columns with manage_edit-custom_post_columns, but drop ...
0
votes
1answer
3k views

WooCommerce - Order_itemmeta - Need to add meta_keys to table

I need to add 3 meta values to each order_item to the woocommerce_order_itemmeta table. Any suggestions how to create new meta_keys to be included in the table for all order items?
0
votes
1answer
586 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
11k views

Change colour of table td based on value

I have this code in my table calling in a number <tr> <td>Total: <?php echo $total_credit;?></td> </tr> I would like to change the background colour or the text ...
1
vote
0answers
9 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 ...
1
vote
1answer
15 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 ...
1
vote
0answers
14 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%;"> <...
0
votes
1answer
530 views

Insert double entry in DB

I created plugin and my plugin create new Table in DB. My problem is when user type something in field firstname, lastname... and click on button Submit, that go to my table and that is ok.. but then ...
0
votes
0answers
22 views

Insert and retreive data from custom database from Wordpress page

This is the first question I'm asking here, so I'm open to any feedback on how to clarify my problem/question! I have created a small javascript game on a wordpress page with "custom html". I'd like ...
1
vote
1answer
66 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
0answers
18 views

CPT with custom datatable insert, update

I have a CPT with ACF and I have managed to get those fields to save to a custom data table. How can I update the same ACF values, with the same post_id, while I’m updating the CPT? Here is what I ...
0
votes
1answer
645 views

Show a table from data submitted by a form from a user

I would like to show a table on my wordpress site, which is filled by registered users. How can I realize this? So my thoughts are: Registered users should be able to submit 2 variables through a ...
1
vote
1answer
497 views

How to create a form and display its content as table in admin panel?

I am new to Wordpress CMS and have been into a problem and don't know how to go about it. The problem is I want to create a form with first name, last name, phone number and a submit button. On ...
0
votes
2answers
551 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
18 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 ...
0
votes
0answers
14 views

SQL query hanging php

I'm having issues with a fairly large WordPress site creating 45+ php-fpm pools. My hosting company says it is some long running SQL queries causing the problem and gave me this: +-----+-------------...
0
votes
0answers
21 views

Frontend posts table and post edit form

I would like to create profile page, where user can add, edit his own posts. The same functionality as in Wordpress admin, but at frontend - in the same style as the whole website. I want to have ...
0
votes
1answer
450 views

Display single post inside accordion based on form submission results

*Note - for full background see previous question here: http://bit.ly/1gaF673 Ok, so after fixing the problem above and a couple of issues that followed. My form submission returns the results I want....
0
votes
0answers
12 views

table/csv input that allows custom front end displays

I need an easy way for a client to import (from a CSV) and then manage a table of contact details (roughly 150 rows, roughly 9 columns) and then for me to create a custom non-table front end to ...
2
votes
1answer
53 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 ...
1
vote
1answer
45 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. ...
0
votes
1answer
438 views

Google does not index data from custom table used for a plugin

I've got an online shop plugin (made on my own) which uses custom tables for storing data about products. For list of product and for product detail I created WordPress pages and used shortcode to ...
1
vote
0answers
27 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] "; /* ...
1
vote
1answer
18 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 ...
4
votes
0answers
780 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 ...
1
vote
2answers
83 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 ...
1
vote
1answer
981 views

Wordpress mysql table double prefixes

Currently working on updating a wordpress website for a client of mine. The wordpress mysql database has double prefixes in it though. The standard wp_ prefix and her own custom prefix for the tables....
0
votes
1answer
17 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 ...
0
votes
1answer
170 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 ...
0
votes
3answers
2k views

Custom Database Table and foreach

I have just created a custom database table and would now like to output every inserted row from it into a predefined format using a foreach statement. Some guidance in this matter would be great. ...
0
votes
0answers
22 views

Adding empty cells in a table with posts

I'm trying to create a plugin, and want to show up a table, in which WP posts would be shown. I can do it with the following code: echo '<table class="custom_type_table">'; $custom_type_args = ...
1
vote
1answer
12 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?
0
votes
0answers
522 views

Could not insert post into the database - Media

im currently having a database error in my Wordpress Media section. Everytime i upload a file i get a "Could not insert post into the database" error. The site was migrated from one hosting to ...
1
vote
3answers
3k views

How to insert more than one row of data into a table at one time

I would like to populate a custom table, with more than one row of data at one time. If I delete the second array, it will insert one row of data. It won't add both rows at the same time though. How ...
0
votes
1answer
58 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....
1
vote
0answers
66 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
34 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 ...
1
vote
2answers
1k views

Get random row from custom table

I have custom table where I store quotes and author: function quote_install(){ global $wpdb; global $quote_db_version; $table_name = $wpdb->prefix . 'quote'; // create sql your table ...
2
votes
1answer
213 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", '...
1
vote
1answer
42 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
2 3 4 5