When I use the_content() in the template php file, it displays the_excerpt() instead of the full post content.
I tried removing all filters with
remove_all_filters('the_content');
But it still displays the excerpt.
I found the workaround for displaying the full post content by fetching it directly from the database.
$post_data = get_post(get_the_ID());
echo $post_data->post_content;
This does not seem right though. I want to know why the_content() is not working and how to fix it?
List of all the plugins:
All-in-One WP Migration Version 7.18
Autocomplete WooCommerce Orders Version 1.1.0
Classic Editor Version 1.5
Cloudflare Version 3.4.1
Co-Authors Plus Version 3.4.2
Favorites Version 2.3.1
Google Analytics for WordPress by MonsterInsights Version 7.10.4
Gravity Forms Version 2.4.17
Gravity Forms MailChimp Add-On Version 4.6
Locations plugin Version 1.0.0
Order / Coupon / Subscription Export Import Plugin for WooCommerce (BASIC) Version 1.6.0
Razorpay for WooCommerce Version 2.4.0
Razorpay Subscriptions for WooCommerce Version 2.1.0
Regenerate Thumbnails Version 3.1.3
Teams for WooCommerce Memberships Version 1.2.1
Two Factor Authentication Version 1.7.2
WooCommerce Version 3.9.0
WooCommerce Extended Coupon Features FREE Version 3.1.2
WooCommerce Memberships Version 1.14.0
WooCommerce PDF Invoices & Packing Slips Version 2.4.6
WooCommerce Price Based on Country (Basic) Version 1.8.22
WooCommerce Price Based on Country Pro Add-on Version 2.8.6
WooCommerce Stripe Gateway Version 4.3.1
WooCommerce Subscriptions Version 2.5.7
WooCommerce Subscriptions Gifting Version 2.1.0
WP Pusher Version 3.0.2
Yoast SEO Premium
Theme: A custom WordPress theme by Ink My Web
Edited: I am using it in the single article page template of the blog. It does not happen in other pages. I think what happens is the WC membership plugin cuts off the content as it should happen for the free user. But when displaying for paid user, I need to show the full content.