• jomo

    (@jonathanmoorebcsorg)


    Hi, I noticed standard extract generators don’t work with %EXCERPT% – effectively %EXCERPT% is the Raw excerot
    This is because SNAP doesn’t allow for the filter, code is currently:

    
    if ($post->post_excerpt!="") $exrText = nxs_doQTrans($post->post_excerpt); else $exrText= nxs_doQTrans($post->post_content); 
    $pText = (empty($gOptions['brokenCntFilters']))?apply_filters('the_content', $exrText):$exrText;      
    

    I would expect the code to be eg:

    $exrText = apply_filters('get_the_excerpt', $post->post_excerpt)
    if ($exrText) //...as before

    Instead SNAP is going straight onto test the content if there is no excerpt, and ‘the_content’ filter is not useful for customising the excerpt as the filtering function won’t know that ‘the_content’ is being called in an extract context..

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author NextScripts

    (@nextscripts)

    Thanks for notithing. We will change $post->post_excerpt to get_the_excerpt($post);

    function get_the_excerpt() applies ‘get_the_excerpt’ filters internally.

    Thread Starter jomo

    (@jonathanmoorebcsorg)

    thanks…
    at the moment in certain circumstances shortcodes don’t get stripped and things like captions for images come out in unexpected places in autoposts

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘SNAP bypasses theme extract generation’ is closed to new replies.