You don’t have a $post
object to use $post->ID
, so use get_the_ID()
instead. In your loop:
<?php $ptype_link_url = get_post_meta(get_the_ID(), 'lolfmkbox_link_url', true); ?>
<h1 class="entry-title"><a href="https://wordpress.stackexchange.com/questions/209732/<?php echo $ptype_link_url; ?>"><?php the_title(); ?></a></h1>
Reference: https://codex.wordpress.org/Function_Reference/get_the_ID
Related Posts:
- Function to return true if current page has child pages
- Cleaning up WordPress to improve performance?
- List of all theme customizer control types?
- Get author full name
- Integrating WordPress to my website, while keeping my own authentication system
- Remove/unset options field from backend Settings->General?
- Display posts by month
- How to preserve PHP modifications while upgrading WordPress?
- Removing jQuery migrate and working with dependencies
- Load post content into iframe
- is there a simple way to list every templates / php files used to generate a specific page?
- wp_customize_image_control default value
- How To Customize Position of »add to cart« of WooCommerce on Product Page [closed]
- WordPress Customizer: How can you have multiple active callbacks on one control?
- Edit postmeta when user changes user role?
- Authenticating to WordPress, using my own authentication two-factor system
- How to add default images into theme customizer image control?
- WordPress Ajax Data problem
- there’s a way to include a minimal WP for check only the current user, its roles (caps?) and then release/free it?
- Remove all nav menu classes ( but keep useful ones… )
- Widgets not showing in my custom theme
- How to display custom field on homepage
- Add attribute / custom attribute to product in woocommerce
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- How to get 2 or multiple custom post types in wordpress functions.php
- Displaying theme options in css
- Creating bulk posts with Youtube videos
- Hide wordpress field if data is empty in post!
- Trouble creating conditional PHP for nav menu items with children for custom Walker
- Setting custom canonical urls
- Only show search results with if current date is between two dates?
- database interactions using OOP
- Extending the WP_Widget_Text class
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Trying to build simple deposit code that hooks into woocommerce
- How to pick the default selected value in wordpress dropdown?
- user_profile_update_errors hook not executing
- Saving and Restoring a Canvas on A Individual User Basis
- Extend plugin Class through functions.php
- How to add a do_action on refreshing of WP customizer?
- Customize position of social icons in upme plugin [closed]
- Weird 404 URL Problem – domain name being placed at end of urls
- Output custom field value to post string
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Media Upload , file name changed automatically
- Replace shortcode in substring
- Need help enqueueing webfonts
- Custom Background by Page IDs
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- Underscore – Self hosted fonts
- Hook called before text widget save
- customize wordpress database error page
- Echo title attribute php
- str_replace with the_content is not working
- Ajax search shows all results when user empties input?
- List post by title length
- Need help with pagination
- List of Events with Multiple Dates: Only NEXT Date
- Set cookie for visitor
- Display movies that apear this day next
- Editor capabilities – admin_init
- WP insert post Redirect after function has executed
- Array data not saving to specified sections. How to make seting independantly?
- How can I add diffrent editable text fields?
- Integrate otp in my custom singup form
- Hide A Class and Add Custom HTML Code Using WordPress
- Featured image in menu wordpres
- How do I know if the user is a customer?
- How to block specific user id in custom login form?
- I want to fusion the product columns in email table order
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- Dynamic “home” image and URL based on current folder
- Need help transforming echo to return for use with shortcode
- Noob question: want to remove the “site identity” logo for specific part of website only
- Redirect after login depending on the URL
- Add custom attribute to product’s HTML to woocommerce cart page
- Autoloading Classes in Plugins
- Automatically refresh page if widget is added to page?
- Real time notification on user profile after new comment
- How to add text before posts
- Add two or multiple functions in WordPress Post or Page
- Show content by using tags
- WordPress error on my website
- Use custom get results query to show posts WordPress
- How can I show only if custom field has content [closed]
- media-uploader insert into post is not inserting
- How to show all of aspecific post type that has taxonomy and a specific term
- wp_customize_image_control default value
- How to hide something from custom home page with php code?
- How To Customize Position of »add to cart« of WooCommerce on Product Page [closed]
- How to add button to top of theme customizer?
- Display a list of users with avatar filterable with alphabets
- How can I add more code to this?
- How does one programmatically manage posts from a external php script?
- Edit the Publish Widget Options
- How to remove the intro animation which appears during the load up of some WordPress themes? [closed]
- New to WordPress & Freelancing [closed]