• wellyfish

    (@wellyfish)


    Hi,

    Whenever I make a call to the_excerptit always (ALWAYS) returns a blank.

    None of my posts have a manual excerpt so I was expecting the call to the_excerpt to return a ‘default’ excerpt … it simply returns a blank string.

    Anyone know what’s going on and how to fix it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    (@esmi)

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Ten theme to rule out any theme-specific problems.

    Thread Starter wellyfish

    (@wellyfish)

    Yeah,

    tried deactivating ALL plugins … makes no difference at all, still no excerpts appearing.

    What next??

    esmi

    (@esmi)

    Switching to the Twenty Ten theme to rule out any theme-specific problems

    Thread Starter wellyfish

    (@wellyfish)

    Ah … but I have got a filter on the content which checks for a certain string and, if it finds it then it gets some posts and displays them in a table …

    If I deactivate that function then the excerpt appears again … do you know what I have to do to both keep the function and have the excerpts working too?

    here’s the code and the add action:

    [Code moderated as per the Forum Rules. Please use the pastebin]

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

The topic ‘the_excerpt always returning blank’ is closed to new replies.