Files
feadulta/wordpress/fix_links.php
T
rafa 668d973889 Initial commit — migración Joomla→WordPress feadulta.org
Incluye: mu-plugins custom (fea-homepage, carta-semana), scripts de
migración/traducción/deploy, documentación de auditoría, análisis de
cartas y HTML de evangelios exportados desde Joomla.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 08:33:12 -04:00

12 lines
366 B
PHP

<?php
$post_id = 17907;
$post = get_post($post_id);
$content = $post->post_content;
// Regex to match joomla links with slug
$content = preg_replace('/index\.php\?option=com_content(?:&amp;|&)view=article(?:&amp;|&)id=\d+;([^&"]+).*?">/', '/fea/$1/">', $content);
wp_update_post(array('ID'=>$post_id, 'post_content'=>$content));
echo "Updated post $post_id\n";
?>