• I want to show the html code of my post content in a text field.

    As i am doing a video blog, it would be something like Embed code, but the textfield input value will be the same as my post_content

    I would like to assign post_content value to e.g variable $content and then append some text with it

    Eventually then show the result on a textfield.

    Anyone can help me on this as i not sure how to get the post_content, my permalink work in /%post_name%/ so url is written in https://mydomain.com/example-1

Viewing 1 replies (of 1 total)
  • Mhhh… I can only give you an idea as I am not an expert programmer…

    You can use meta tags (meta_key and meta_value) for the code you want to output…

    This way you can not only have the_content for some explanation, but to paste the video in a metatag which can be included in our theme in both parts just after the_content,

    in one part as the visible embed you want and next to it the proper code box: you set that part into <pre> CODE </pre> tags, that should output the code as it is without formatting…

    well I believe so…

    good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘How do i get post _content in textfield’ is closed to new replies.