beezwax / WP-Publish-to-Apple-News

Other
17 stars 81 forks source link

Post Excerpt/Intro not working? #3

Open AlexAscherson opened 8 years ago

AlexAscherson commented 8 years ago

Hi guys,

Another quick one. I cant seem to get the article intro/standfirst working correctly. Seems like it should be coming from the post excerpt but testing it on a new wordpress install it seems like this isnt happening.

I found dropping this into builders/class-components fixed the problem for me:

if ( $this->content_intro() ) { $components[] = $this->get_component_from_shortname( 'intro', $this->content_intro() )->to_array(); }

Is this a bug or am I doing it wrong?

bcampeau commented 8 years ago

Intros are handled in class-metadata.php. If you want to propose a pull request to handle otherwise, I'm open to it.