New Landing How can we help? Themeforest Theme Support Uplift Output page builder content in post custom loop

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Uplift
  • #291246
    digitalunion
    Member

    I’m using ajax in WordPress to display a post and need that post to display as it normally would when going to that page. When I use the_content() it displays what seems to be the form to add content in the page builder without all the styling and js. If I use get_template_part from inside the custom loop to display the content I get no content as it bombs out at the while loop in the single-post template inside the swift-framework/layout folder. I’ve tried changing my loop and tinkering with the code inside the framework layout to test and still get nothing.

    #291546
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Just paste this code at top of your ajax file.
    require_once( "../../../../wp-config.php" );
    Thanks
    Mohammad

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register