This function breaks the entire page afterwards
Okay so I’m trying to create a wordpress shortcode called chapter, i.e. [ chapter ]text [ /chapter ] (without the spaces)
What this does is it first checks if the content entered is already in the database, if it’s not it will add it to the database and will also add a count to another table. Then it outputs this in a div
This is the code I have
When I apply this in a post, the entire content of the post doesn’t show up on the page and everything afterwards isn’t rendered as well (so no footer etc.) However the div that the the_content(); is in is closed of like it should though
Can anyone offer me any insight into what I have been doing wrong? I’m pretty new to PHP
- The topic ‘This function breaks the entire page afterwards’ is closed to new replies.