Skip to content

[Feature] Any option to output wordpress into a Razor page ? #133

Description

@LORDofDOOM

I want to ask if there is any option to render Wordpress in razor as "@RenderBody()". This would be pretty helpful and a great usecase for peachpie to create e.g. the blog pages in WP but preserve the layout for everything else (or mix up functionality)

I include Wordpress with specified HomeUrl/SiteUrl directly in my aspnetcore application and use SQLite as database, this works fine but I need the option to "render" wordpress directly into a Razor Page (with the default _Layout.cshtml).

I checked your sample code to integrate php into a razor view (https://github.com/iolevel/peachpie-samples/tree/master/mvc/render-php-within-razor) but the wordpress routes seems to get rewritten though the middleware so I'm unsure if this could work that way.

Thank you for the awesome work :-)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions