Articles of table

How to avoid repeating similar properties for all tds of a table in a wordpress post

Consider the following table. <table> <tbody> <tr> <td style=”text-align: right; direction: ltr;”>1</td> <td style=”text-align: right; direction: ltr;”>2</td> <td style=”text-align: right; direction: ltr;”>3</td> . . . </tr> <tr> <td style=”text-align: right; direction: ltr;”>1</td> <td style=”text-align: right; direction: ltr;”>2</td> <td style=”text-align: right; direction: ltr;”>3</td> . . . </tr> </tbody> </table> What can I do to avoid repeating […]

Creating a search form and displaying results

Im trying to create a plugin for a site where the user can see a table of orders from customers in the WordPress dashboard, It’s a custom db but I’m using the wp-list-table, I’ve wrecked my brain for hours trying to get the built in search for that working I want to create a search […]

Can i set css class for table via TinyMCE

I’m using TinyMCE plugin. And now i need to set css class for table. I found some info on http://www.tinymce.com/wiki.php/Configuration:table_class_list . But how can i apply it in TinyMCE plugin for wordpress? Or there is some better solution for setting css class for table in TinyMCE?

Use members from 1 site on another one

I have two different wordpress installations and want to use the same users, I have Site_A with all the users logins with buddypress and bbpress, Site_B will be capable of letting the users from Site_A to post on the new site. Site_A is the “root” domain and Site_B a subdomain. I’m not sure if the […]

Table is not created in WAMP

I don’t know where the mistake is. My code is not creating a table in WAMP: function subscribe_table() { global $wpdb; $table_name = $wpdb->prefix.’_databasesubs’; $charset_collate = $wpdb->get_charset_collate(); if ( $wpdb->get_var( ‘SHOW TABLES LIKE ‘. $table_name ) != $table_name ) { $sql = “CREATE TABLE $table_name ( sno int(2) NOT NULL AUTO_INCREMENT, email varchar(25), name varchar(25), […]

Custom select query two tables by a meta key

I’m using an event plugin which creates wp_ftcalendar_events table in database with start_datetime column. Here’s image of whole table: I want to query my posts by start_datetime. I know that I can’t do that with regular query. I also know that this query requires some conditions etc. but for a start I wanted to make […]

How to insert dash (-) into database using wpdb and new_to_publish hook?

I am saving titles of posts in a separate table for a specific use. The titles are saved to the database when a post is published. code is: add_action(‘future_to_publish’, ‘send_emails_on_new_event’); function send_emails_on_new_event($post) { global $post; global $wpdb; $table_name = ‘tbl_name’; $site_post_url = get_permalink(); $site_post_title = get_the_title(); $author_id = $post->post_author; $author = get_the_author_meta( ‘display_name’, $author_id ); […]

Pagination in html table is not working

I have a custom page template and I found a a PHP snippet that create a pagination in html table. But the code is not working properly. UPDATE: I change the code. But still the code is not working correctly, when I click on the 2nd page, the 2nd page displayed a blank page only. […]

Can I customised default WP table

I have a XML file that consist of product information. Format of XML file : <product> <name>Product-1</name> <description>this is product 1 description</description> <category>Category-1<category> <merchant>1234</merchant> <price>12</price> <instock>1<instock> <stockstatus>45</stockstatus> <image>http://www.example.com/1.jpg</image> <manufacture>987</manufacture> </product> I need to write a script that will add these detail as a product. For now I am not using any WP plugin for eCommerce […]

Is there alternative to WP_List_Table?

I need to create html tables in a admin pages. It should be responsive. After a research I find the WP_List_Table. But in codex page, This class’s access is marked as private. That means it is not intended for use by plugin and theme developers as it is subject to change without warning in any […]