Outside the loop you can use this:
global $post;
$headabouttitle1 = get_post_meta($post->ID, 'head_title1', true);
Related Posts:
- Need Help Fixing My Iframes [closed]
- Trying to retrieve post meta
- PHP unit testing WordPress?
- Proper use of Output Buffer
- Include a external PHP file into a WordPress Custom Template
- List of all theme customizer control types?
- Is having multiple theme customizers for different pages possible?
- How to remove hardcoded characters from playlists?
- function_exists call in function.php
- Metabox repeating fields – radio buttons not saving correctly
- Debugging an error: wp_enqueue_style was called incorrectly
- add_meta_boxes action with refresh on save
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- Multiple do_shortcode($content) within one shortcode
- Remove css styles from specific page
- PHP Customization: Taxonomies and Queries, why? [closed]
- Widgets not showing in my custom theme
- What is the fastest way to load PHP functions that are only used in one theme template?
- Differences when using the the_time and the_date functions
- How do I access the media settings
- Can’t load WP function into external function
- Implement toggle switch for theme options in settings API
- What’s the difference between same wp functions get_posts(); functions in different form?
- How can i upload images in an admin page?
- Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?
- Wp-login appears White Screen, Error: Cannot modify header information
- Can’t access variable outside for loop
- add custom link to wordpress media gallery modal
- Two queries for a WP_User_Query search work perfectly apart, but not together
- How to edit widget code to add unique class name to each div?
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- How do I link a button I created in theme customizer to a function?
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- get_template_part for specific page
- How do I create my own .php file with a code part and echo it on different pages?
- WordPress admin-ajax.php
- Syntax error when I try to insert my loop into an unordered list? [closed]
- What exactly do this function declared into functions.php file of a WP theme?
- Royalty-Free Sliders used in theme development
- Find a way to retrive data updated through metabox plugin to web page
- Reason to add a name of the theme like (‘menu-1’ => __( ‘Primary’, ‘twentynineteen’ ),) in PHP?
- get_template_part() not firing within a switch statement when template has new WP_Query
- How to call multiple functions from multiple files into a WordPress page template [closed]
- zip unzip attachments in wordpress
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- WordPress get_media_embedded
- What is the best way to define constant options for a theme?
- Warning: printf(): Too few arguments in helpers.php file
- Add editor toolbar to Metabox
- Help Fallback (thumbnail)
- get_comments_number() returns 0
- get_page_templates only return templates with “home” in the filename
- save metabox with new values _wp_page_template
- Show different website layout if no sidebar added
- Why the dynamic_sidebar() call is putted into an ul tag?
- Need advice on theme customizer and child themes
- How to make sure relative URL works when site is not on root domain?
- Toolbar Hidden in a Virtual Page
- Remove Custom Post Category In WordPress Slug Using .Htaccess
- How do you remove header sitewide from mobile only?
- PHP inside echo HTML
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- Header is not displaying on certain pages of wordpress theme [closed]
- Check if current post in loop is last on current page
- How to change PHP variables with AJAX request in WordPress
- is_user_logged_in returns false when I access certain pages
- REST API custom endpoint to fetch pages and posts not working
- Looping through dummy posts and showing them in the main index.php
- Exclude category from woocommerce product category list
- Trying to get pagination working on WP_Query() post grid
- Warning: count(): syntax problem of the count () function
- Fix hover images blink
- Meta Box clears saved field content
- Customizer: How to Sanitize a Decimal Number Range
- PHP code printed into CSS classes
- Get the image title and alt from custom query
- What syntax is this? “{{post.price}}”
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- Metabox – Displaying the Value of a Metabox
- How to replace hard-coded list of custom taxonomy terms based on custom field query [closed]
- Calling PHP function doesn’t work in index.php
- WordPress get_post_meta issue
- custom field meta-box with dropdown/autocomplete
- Display a post based on its metabox selection
- How to correctly add the featured immage (thumbnails) support in a WP theme? Why I can’t add a featured immage?
- Metabox Input Not saving
- Listing current pages subp page in list items in the sidebar
- How to add button to top of theme customizer?
- Sidebar doesnt get updated?
- Display custom meta box in my template file
- Add CSS class to PHP Statement
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- send meta box input data without publish button
- Load slideshow.css file only if Slideshow is checked / on
- Predefine Magazine Style Layouts
- Twig+WordPress how to use array arguments inside a function?
- How to store the_post_thumbnail() value in a variable
- Variable ++ in query loop
- functions.php doesn’t load all custom theme assets