• I can’t for the life of me figure this one out.
    I’ve unsuccessfully searched for a cause.

    Here’s whats happening.
    I’ve created a custom post type.
    I had initially commented out
    the_content();
    To test just my meta boxes (custom fields).

    Then I created a single-portfolio.php template.
    It loads instantly.
    However when I add the_content(); back into the mix, its slow as molasses.

    I’m not sure if posting my code would help.
    I was curious if this is a known issue?
    Has anyone else experienced this problem?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Acts7

    (@acts7)

    Has no one else encountered this?

    well, when you add the_content back in, any plugins you have that affect the output of the_content would need to run. So there is potentially a lot more happening behind the scenes

    Thread Starter Acts7

    (@acts7)

    Thanks Rev Voodoo
    Why is it that the custom fields would load instantly (up to the point where the_content is called) and then the rest of my custom fields which get displayed below the_content pop right in after the_content loads.

    ex:
    (CF means custom field)

    CF1
    CF2
    the_content (bottleneck is here)
    CF3 (this pops right in after the_content loads)
    CF4
    CF5

    CF10

    If I move the_content below all CF, the 10 CF load instantly but the_content is still slow. So thats definitely where the issue lies.
    I’ll do some more investigating and report what I come up with.

    Well, my first instinct is the many things that can happen with the_content. Again, I would suspect plugins, lots of them affect the_content in some way. Even if they don’t seem to be used for every post they may be loading something there, or running filters, etc….

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Post Type Front end: fast w/only meta-boxes Slow when add "the_content()"’ is closed to new replies.