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>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?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(?:&|&)view=article(?:&|&)id=\d+;([^&"]+).*?">/', '/fea/$1/">', $content);
|
||||
|
||||
wp_update_post(array('ID'=>$post_id, 'post_content'=>$content));
|
||||
echo "Updated post $post_id\n";
|
||||
?>
|
||||
Reference in New Issue
Block a user