I have a need for placing content both to the side and below the slideshow in the portfolio, so I implemented the Content Parts plugin (http://www.benhuson.co.uk/wordpress-plugins/content-parts/) and replaced appropriate instances of the_content with the_content_part/added an extra DIV for another content part/etc., just following instructions. It works great everywhere except where I most need it, on the Ajaxed portfolio details. I modified functions-flagship.php right at the beginning to change the HTML output of the Ajax request (from the_content to the_content_part, added a new DIV, etc.), but it outputs nothing/blank instead of outputting any content, and I don’t know why.
I know you don’t want to support a third party plugin, I’m just wondering if you can tell me if you have any idea what I could be doing wrong. A hint, whatever. It seems like this would be simple to do, but I’m pretty stumped and I don’t know enough to find the problem. Thanks!
You can edit includes > loop-portfolio.php and loop-portfolio-single.php, they handle the loop for portfolio entries.
Thanks for the reply!
I actually had edited loop-portfolio-single.php to successfully display these content parts, but the real issue is the Ajax load in functions-flagship.php. When I replace “the_content([…]);” with “the_content_part(1);” in loop-portfolio-single.php, it works, but if I do the same thing on line 55 of functions-flagship.php, I get no content. Obviously there is a step I’m missing, but if you’re not sure what that is, that’s okay.
Yeah, my mistake, the reason I was so baffled by why it wasn’t working was because it was a bug in the plugin, not a tricky way something was handled in the theme. So, sorry!
The topic ‘Content Parts plugin’ is closed to new replies.