Tag Info

New answers tagged

0

I assume that each php file contains the content of a page. It depends a lot on how your content is written in that php page, you should make another php script, go trough all files in that directory. <?php if ($handle = opendir('/path/to/files')) { echo "Directory handle: $handle\n"; echo "Entries:\n"; /* This is the correct way to loop ...


0

Logic of my function was all wrong, should have sorted the result in $trans_array before the foreach loop. Here is the updated code that worked, if anyone needs it: function rkm_translation_update() { global $wpdb; $trans_row = $wpdb->get_row("SELECT * FROM id_item_lid", OBJECT, 0); $id = $trans_row->id; $item = ...


1

Look towards the end of your wp-config.php file, you should have the definition for ABSPATH looking something like: /** Absolute path to the WordPress directory. */ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); If it's a static path instead of the code above, then this might not correspond to your current path. Either change ...



Top 50 recent answers are included