Menjehere sapo te jeni futur ne program kjo eshte pamja e pare qe do te shikoni. Kjo eshte nje pamje e pergjithshme per ate qe po ndodh ne hotelin tuaj. Per secilin sektor ju mund te shikoni me shume detaje.
2 Comments
Demo User
Tetor 13, 2020
Wouldn’t it be better practice to use get_the_title(..) in this case? directly accessing the post object’s data member would bypass applying filters and enforcing protected and private settings, unless that’s explicitly desired.
If you need special things—[shortcodes], paragraph tags, anything exciting—in the content, you should apply the filters as opposed to using do_shortcode().
2 Comments
Demo User
Wouldn’t it be better practice to use get_the_title(..) in this case? directly accessing the post object’s data member would bypass applying filters and enforcing protected and private settings, unless that’s explicitly desired.
ReplyDemo User
If you need special things—[shortcodes], paragraph tags, anything exciting—in the content, you should apply the filters as opposed to using do_shortcode().
$post = get_post( 42 );
$output = apply_filters( \’the_content\’, $post->post_content );
Thanks
Reply