corcel / corcel

Use WordPress backend with Laravel or any PHP application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How remove to comments in post_contents

aisakk opened this issue · comments

  • Corcel Version: ^4.0.0
  • Framework Name & Version: Laravel ^7.29
  • PHP Version: ^7.2.5|^8.0
  • Database Driver & Version:Mysql

Description:

Good afternoon, I am using the package for the first time and I wanted to know if there is any way to remove the comments that appear in the content when fetching it from the database. Example:

image
image

Steps To Reproduce:

Well, I can finded one solution but is in wordpress, using the excerpt of the post to get in my laravel and see in the view. I would like that working in the post_content and not in post_excerpt.