$temp_post_data->post_excerpt
before wp_update_post
and wp_insert_post
happen in the broadcast_post
method, this than ignores broadcasting of the post excerpt and acts exactly how I want it to. But is there a way to edit the $bcd
and remove the post_excerpt from being linked from the parent a better way, without editing the core file? Could there be an action or filter for this perhaps?
Thanks
]]>On a whim, I tried these two fields in my Custom Form but neither one got submitted:
A:
<input id=”user-submitted-excerpt” name=”user-submitted-excerpt” type=”text” value=””
placeholder=”excerpt” required=”” class=”usp-input”>
B:
<input id=”post_excerpt” name=”post_excerpt” type=”text” value=””
placeholder=”excerpt” required=”” class=”usp-input”>
Just for the record, I’ve tried everything to my level of knowledge in this matter to fix this problem without success
My photoblog (https://blogwithphotos.net) is based on a custom theme (I customized it) based on the PB3-LT (Photo-Biyori Light) theme (today outdated). After the last WP (4.5) update the textarea just started to appear when I want to add a new post.
Disabled all the plugins, the textarea was still not there. Changed the theme (all pluging enabled / disabled) the textarea did appear.
OK, so it’s the theme’s fault. Unfortunately the author does not offer support anymore.
I’ve check the web server logs and came over this error generated when I click Add New Post:
2016/07/03 14:02:35 [error] 15617#0: *412754 FastCGI sent in stderr: “PHP message: WordPress database error Column ‘post_excerpt’ cannot be null for query INSERT INTO
wp_posts
(post_author
,post_date
,post_date_gmt
,post_content
,post_content_filtered
,post_title
,post_excerpt
,post_status
,post_type
,comment_status
,ping_status
,post_password
,post_name
,to_ping
,pinged
,post_modified
,post_modified_gmt
,post_parent
,menu_order
,post_mime_type
,guid
) VALUES (1, ‘2016-07-03 21:02:35’, ‘0000-00-00 00:00:00’, ”, ”, ‘Auto Draft’, NULL, ‘auto-draft’, ‘post’, ‘open’, ‘open’, ”, ”, ”, ”, ‘2016-07-03 21:02:35’, ‘0000-00-00 00:00:00’, 0, 0, ”, ”) made by get_default_post_to_edit, wp_insert_post
PHP message: PHP Warning: Creating default object from empty value in /xxx/xxxxx/xxxxxx/wp-admin/includes/post.php on line 639″ while reading response header from upstream, client: x.x.x.x, server: blogwithphotos.net, request: “GET /wp-admin/post-new.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “blogwithphotos.net”, referrer: “https://blogwithphotos.net/wp-admin/themes.php”
The message is pretty explanatory, that the ‘post_excerpt’ cannot have NULL value.
Do you have an idea where to look for code that is generating this problem? If you can point me to the right direction, I may be able to do the rest on my own.
I’ve tried to change the theme to something that works, unfortunately I wasn’t able to find a theme that resemble this one, in which the focus to be on the photography and not other elements. If you have an idea in this direction is also welcome.
Thanks a lot!
]]>Before that, imports would throw many errors complaining of a null entry trying to be inserted. Result was import would complete successfully, but upon closer review, most if not all images were not imported and this error message (in debug mode) was oft-repeated.
Setting ‘wp_posts.post_excerpt’ to allow nulls for the duration of the import resolved the issue. After import, ‘wp_posts.post_excerpt’ was set back to not allow nulls.
Perhaps this issue is specific to the Blogger data I was importing, so please disregard if it was content specific.
https://www.ads-software.com/plugins/blogger-importer/
]]>thanks
]]>Hi, I am making an XML-RPC request to get latest posts (in PHP using WordPress API). I can get most post fields but the post_excerpt field is empty. Any idea? Thanks.
]]>Based on the documentation, namely
Checking Autogenerate Descriptions will mean that All in One SEO Pack will automatically generate your OG:Descriptions for each Page or Post from the Excerpt, if you create one, or from the first 160 characters of your content if you do not create an Excerpt.
My expectation would be that the og:description tag would be populated with the content of the manually-set excerpt for a post, if there is one. This doesn’t seem to be happening on my client’s site, and indeed the code doesn’t seem to use the post_excerpt at all. In aioseop_opengraph.php, method All_in_One_SEO_Pack_Opengraph::add_meta, a truncated post_content is used to set the description rather than the post_excerpt.
Replacing post_content with post_excerpt in that method does cause the description to be populated with the excerpt, though of course that change on its own doesn’t provide a fallback if there’s no excerpt.
Anyway, just wondering if I’m missing something, or if I’m misreading the documentation, or this is a bug.
thanks!
https://www.ads-software.com/plugins/all-in-one-seo-pack/
]]>