Skip to content

Tag: wordpress

Dynamically create wp pages

I’m using a custom page template that is intended to create a dynamic content using the wpdb class and some external tables within the database. I’m trying to keep the url’s structure as clean as possible, hence im using the ‘post name’ option in the permalinks.. I’ll just …

How to get affected row count on WordPress query?

This code is to use in WordPress plugin. The following is my code I am using to insert data from CSV file to database: When I do this var_dump($query); it shows int(0), and data is successfully inserted in table. My question is how can I get number of inserted rows? Answer Very old question, I know, and perha…