hello,
this might be a bit out of the range of the normal theme support – but since I’ve been scanning the net for all sorts of solutions (and there are no plugins available) I’m hoping you guys can help me here:
I’ve moved a huge site for a client from joomla to wordpress -> into newspaper. so far so cool.
but now there’s thousands of posts which have their excerpt still in an (ex-joomla/zoo-) custom field called teaser-text which I would LOVE to copy into the theme excerpt (to have it beautifully displayed and controlled by the theme) especially since the clients team will be using the newspaper-excerpt to write their teasers (of course)
since I’m not a coder I would be hyper thankful if one of you guys could provide me with a few lines of code that I could add to my functions.php to let it run through all the posts and update each of their excerpts with the text that is yet stored as teaser-text. many – many ! thanks in advance!
Cheers!
Hi,
Unfortunately we have no idea of joomla’s functionality so we cannot provide a solution for this. The main function for the excerpt in our theme checks for the excerpt field in the post editor. Maybe you can add a few conditions here for it to check the database for your custom excerpts: http://screencast.com/t/qmKkDRhYU
If you can’t do it yourself, we recommend hiring a freelancer to help out on this one as we cannot provide a solution for it. Sorry.
Thank you for your message.
You might also be able to do a field conversion in phpmyadmin to merge the existing data field with the one used by WP for the “excerpt” box. Don’t have a clue the “correct” way to do that, but likely a good place to start would be the plethora of articles online about “migrating from Joomla to WordPress…”
Hi again,
thank you both!
the case is not stuck in the middle between joomla and wordpress – i alrready had the artikels imported and changed custom types to post (etc.) – I just mentioned it to describe where i habe my custom fields from.
So internally – inside the new wordpress database – I was helplessly searching for a way to copy values from a certain custom field into the subtitle – field. And there Chris gave me a pretty good hint which I’m really thankful for: phpmyadmin.
I was able to figure out a slick little query which did all the work for thousands of posts within seconds.
happy! Cheers!