WordPress Developer Ukraine, Kyiv
Get the current logged-in user data in WordPress

Get the current logged-in user data in WordPress

Personalizing content based on who is currently logged in is a foundational requirement in WordPress development that appears in almost every non-trivial project. A membership site that shows different content to paying subscribers versus free users needs to check the current user’s role before deciding what to render. A WooCommerce store that greets customers by…
Get YouTube or Vimeo video ID

Get YouTube or Vimeo video ID

Many users think websites without media (audio, videos, etc) are pretty boring. I really hope, that doesn’t apply to HelloAdmin 😁 That is why, vast majority sites contain media-content. As rule, video content doesn’t placed to self website but for that use video hosting such as YouTube, Vimeo, etc. This choice, dictated by need to…
Find All WordPress Pages Using a Specific Page Template with WP_Query

Find All WordPress Pages Using a Specific Page Template with WP_Query

WordPress stores the page template assignment as a post meta value under the key _wp_page_template. When an editor selects a custom template from the “Page Attributes” sidebar in Gutenberg, the filename of that template (relative to the theme directory, e.g. templates/full-width.php) is saved to post meta. This means you can query all pages using a…
How to Pass Dynamic Data (Post ID / ACF Field) to Contact Form 7

How to Pass Dynamic Data (Post ID / ACF Field) to Contact Form 7

A common pattern on real estate, job board, and product sites is placing the same Contact Form 7 form on dozens of post templates — where each form submission should automatically include the ID or reference number of the specific item the visitor was enquiring about. Without this, the site owner receives form submissions with…