Rebuilding WordPress & Newspaper: Quotes still work?

Posted in: Newspaper
Post count: 15

Hi guys,

First of all, thanks so much for your work on this theme. We bought it a couple of years and are still very much enjoying the new features.

Now because we were stuck on Newspaper 4 and reading the documentation of Newspaper 6, we figured we might as well rebuild our website which required a rebuild anyways.

Now, so far things are working out (except for some featured images which will have to be done by hand I’m afraid).

However, some thing I noticed and which we’ve enjoyed from this theme from the start, are the beautiful quotes which can be placed in the articles. But when exported and imported, these shortcodes don’t seem to work anymore.

Is there a workaround or am I simply missing something?

Kind regards,

Post count: 22421

Hello stonedsociety,

The sortcodes were changed due to the fact that version 6 is a whole new theme built from scratch. We did it like this so we didn’t have to patch things up, but rather create a good clean version. These shortcodes now work a bit different as you can see in this tutorial: https://www.youtube.com/watch?v=iuENF-Oeg2Y
There is a workaround to make the theme accept the old shortcodes as well as the new. You have to add the following code (http://pastebin.com/NZEJsWQZat) the end of the ‘functions.php’ file – http://screencast.com/t/OWxqEsYVK

Let me know how it goes.
Thank you.

Post count: 15

Hey Bogdan!

Thanks so much for your quick reply. Awesome work as always, going to give adding the shortcode a try!

Mauro

Post count: 15

Actually the pastebin URL has been removed. Could you post it again? Thanks so much in advance.

Edit: watching the video made me realize the new quotes are even cooler. But will still need to revive the old ones, changing all the old articles would be a pain otherwise.

Post count: 22421

Hello,
I hope it works like this:

function td_quote_center($atts, $content = null) {
return '<blockquote><p>' . $content . '</p></blockquote>' ;
}
add_shortcode('quote_center', 'td_quote_center');

function td_quote_right($atts, $content = null) {

return '<blockquote class="td_quote td_quote_right"><p>' . $content . '</p></blockquote>' ;
}
add_shortcode('quote_right', 'td_quote_right');

function td_quote_left($atts, $content = null) {

return '<blockquote class="td_quote td_quote_left"><p>' . $content . '</p></blockquote>' ;
}
add_shortcode('quote_left', 'td_quote_left');

function td_quote_box_center($atts, $content = null) {
return '<blockquote class="td_quote_box td_box_center"><p>' . $content . '</p></blockquote>' ;
}
add_shortcode('quote_box_center', 'td_quote_box_center');

function td_quote_box_left($atts, $content = null) {
return '<blockquote class="td_quote_box td_box_left"><p>' . $content . '</p></blockquote>' ;
}
add_shortcode('quote_box_left', 'td_quote_box_left');

function td_quote_box_right($atts, $content = null) {
return '<blockquote class="td_quote_box td_box_right"><p>' . $content . '</p></blockquote>' ;
}
add_shortcode('quote_box_right', 'td_quote_box_right');

function td_pull_quote_center($atts, $content = null) {
return '<blockquote class="td_pull_quote td_pull_center"><p>' . $content . '</p></blockquote>' ;
}
add_shortcode('pull_quote_center', 'td_pull_quote_center');

function td_pull_quote_left($atts, $content = null) {
return '<blockquote class="td_pull_quote td_pull_left"><p>' . $content . '</p></blockquote>' ;
}
add_shortcode('pull_quote_left', 'td_pull_quote_left');

function td_pull_quote_right($atts, $content = null) {
return '<blockquote class="td_pull_quote td_pull_right"><p>' . $content . '</p></blockquote>' ;
}
add_shortcode('pull_quote_right', 'td_pull_quote_right');

Also new paste bin link: http://pastebin.com/jASmbvCr

  • This reply was modified 10 years by Bogdan B..
Post count: 15

Thanks again, going to give it a try right now!

Post count: 15

Bogdan! You’re my man, it worked 😀

Can close this thread now as you can consider this problem solved!

Post count: 22

mysql -uroot -pYOURPASS


use db_name;
UPDATE wp_posts SET post_content REPLACE(post_content,'[pull_quote_center]','<blockquote>');
Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.