Estoy usando esto y funciona.
Código PHP:
<?php
$con = mysql_connect("localhost", "username", "password");
mysql_select_db("database_name");
$result = mysql_query("select SQL_CALC_FOUND_ROWS * from scroll_images order by id asc limit 12");
$row_object = mysql_query("Select Found_Rows() as rowcount");
$row_object = mysql_fetch_object($row_object);
$actual_row_count = $row_object->rowcount;
?>
Código:
Desde ya muchas gracias!! -- -- Estructura de tabla para la tabla `wp_postmeta` -- CREATE TABLE IF NOT EXISTS `wp_postmeta` ( `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `post_id` bigint(20) unsigned NOT NULL DEFAULT '0', `meta_key` varchar(255) DEFAULT NULL, `meta_value` longtext, PRIMARY KEY (`meta_id`), KEY `post_id` (`post_id`), KEY `meta_key` (`meta_key`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=6797 ; -- -- Volcado de datos para la tabla `wp_postmeta` -- INSERT INTO `wp_postmeta` (`meta_id`, `post_id`, `meta_key`, `meta_value`) VALUES (51, 13, '_homepage', 'field_541d13d3e6f66'), (52, 13, 'licencia', 'a:1:{i:0;s:13:"restricciones";}'), (53, 13, '_licencia', 'field_541d1427dfcc8'), (54, 9, 'autor', 'Frostroomhead'), (55, 9, '_autor', 'field_541d13a2e6f65'), (56, 9, 'homepage', 'http://frostroomhead.deviantart.com/'), (57, 9, '_homepage', 'field_541d13d3e6f66'), (58, 9, '_wpas_skip_8149645', '1'), (59, 9, '_wpas_skip_8687013', '1'), (60, 9, '_wpas_skip_8687014', '1'), (63, 15, '_wp_attached_file', '2014/09/Glory.jpg'), (64, 15, '_wp_attachment_metadata',