Embed/Link external web pages into my WordPress blog (Like Facebook grabs Image, Title, and Description)

Looks like you might be describing embeds which WordPress supports. On https://codex.wordpress.org/Embeds you’ll find a long list of currently supported embeds simply based on the URLs added in your editor. For the embed to work, it’s required to be on a single line with a space above and below. And generally they are constructed during … Read more

Problem with Apply Filters on URL in meta box filed of custom port type

apply_filters is a function used all throughout WP in many different contexts, your issue here is the specific filter you are applying, which is the_content. the_content filter by default runs on the main post content field, and does all sorts of transformations via a number of hooked functions: wptexturize, convert_smilies, wpautop, do_shortcode, shortcode_unautop, prepend_attachment, wp_make_content_images_responsive. … Read more

Output Post with ACF Fields into other Post

To not duplicate code you could make a file in your theme/child-theme for the html of the post which you intend to embed, let’s say x_cpt_render_html.php: function get_x_cpt_html(){ ?> <div class=”x-cpt”> <h2> <?php the_title(); ?> </h2> <div class=”content”> <?php the_content(); ?></div> <div class=”custom”> <?php the_field(‘custom’); ?> </div> </div><?php } Then you could embed this file … Read more

How to edit embed filter for youtube video to allow responsive full width layout

Thanks to Serkan’s suggestion I was pointed in the right direction to search for editing the wrapper rather than filtering the video itself (even though I would have loved a “filter only” solution.) Nonetheless, I stumbled upon a easy solution here – https://millionclues.com/wordpress-tips/fullwidth-responsive-youtube-embeds/ … I hope this can assist someone else with the same issue … Read more

Modify YouTube Embed Code to fit theme

If you’re using the block editor, the fix is simple: add_theme_support( ‘responsive-embeds’ ); You can also make the iframe responsive using pure CSS, just wrap it in a div: <div class=”yt-container”> </div> .yt-container { position:relative; padding-bottom:56.25%; padding-top:30px; height:0; overflow:hidden; } .yt-container iframe, .yt-container object, .yt-container embed { position:absolute; top:0; left:0; width:100%; height:100%; } This article … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)