Post title not included when importing WP posts into MC campaign

More
13 years 9 months ago #10 by Mailman
Hi chimpexpress,

first of all thanks for your plugin! If we get it run as desired, it will be the perfect setup for newsletter & WP.

The problem we have is that post title not included when importing WP posts into MC campaign. When choosing an article at "Inhalte aus Blog Artikeln einfügen.:", the body is imported, but not the title. Any chance to get the title imported as well?

Thanks,
mailman

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #11 by Pete
Hello Mailman & welcome to our forums!

That's a very good point. We'll do that in the next version.

What would be most suitable in your opinion? H1 or H2 tags around the title? Something else?

Kind regards,
Pete

EDIT: If you don't want to wait for an official update you can edit the file /wp-content/plugins/chimpexpress/compose.php

Replace line 595 with:
Code:
$js .= "posts['".$p->ID."'] = '<h1>".esc_attr(urlencode($p->post_title))."</h1>".esc_attr(urlencode(str_replace(array("\n"),'',$p->post_content)))."';\n";

(You can modify H1 in that code to another H tag.)

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #12 by Mailman
Hi Pete,

thanks for your reply! H2 would play perfect. I'll try your edit tomorrow.

Kind regards,
Mailman

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #13 by Pete
FYI We have just released version 1.1, which does fix this issue.

Kind regards,
Pete

Please Log in or Create an account to join the conversation.

Time to create page: 0.201 seconds