You are using get_the_title(), which needs to be echoed out. However, you have it inside the string. Also, you might want to use isset() rather than !empty().
Try this:
if( isset( $destino_web ) && $destino_web !== '') { echo sprintf('<p><strong>Web:</strong><a href="https://wordpress.stackexchange.com/questions/168579/%s">%s</a></p>', $destino_web, get_the_title() ); }
Related Posts:
- Add source URL from Feed WordPress (Syndication) plugin to a custom field in post editor
- How to add the image URL from an external RSS feed and insert into a custom field?
- Adding Facebook’s image and meta description retrieval capabilities to a WordPress post
- Using ACF Custom Field value in a URL with do_shortcode() [closed]
- Add custom field to post with some part of url as value
- Add filter menu to admin list of posts (of custom type) to filter posts by custom field values
- Using meta query (‘meta_query’) with a search query (‘s’)
- Add subtitle to Woocommerce product title
- ‘Preview Changes’ for custom meta boxes?
- Add metabox to document tab in gutenberg
- Advanced Custom Fields Validation
- When using add_post_meta and update_post_meta, is there any way to give the individual arrays keys?
- Change wp_get_attachment_image attributes (src and srcset) on specific custom field
- Custom user avatar in the WordPress users listing
- query_posts and only show results if a custom field is not empty
- User Profile / Add Custom Fields
- Convert jQuery Datepicker Format to SQL Date Format
- Only show metabox when date-value in other metabox is over?
- Is it possible to store arrays in a custom field?
- HTML / Javascript in custom field textarea?
- How to convert custom field value to tag
- Display newest post’s custom field content on homepage, daily
- Saving an array in a single custom field
- Order posts according to user defined order for meta values?
- Calculate the sum of certain the_sub_fields
- Is it possible to order posts by two meta values?
- My metabox class
- Loading scripts to the Post Edit page only
- Registration and Profile custom field
- Per site configuration
- Alternative to simple fields plugin?
- how can i use custom field in query post
- wp_editor not saving data, and text area showing html tags
- Get specific custom field keys from a post and put into an array
- Importing from XML is ignoring serialized custom field
- Dynamically fill a post custom field with post publish date
- Select multiple options in WordPress custom meta filed
- filtering custom post types via meta data drop down
- Get content from pages with same meta_key from Database
- How to add an extra field in a post and show it on the template
- Exclude images uploaded via meta boxes from WordPress gallery
- Speed up / Optimize Admin Edit Post Page on Large Websites (50-150k posts, 50 custom fields per post)
- Why is my Custom Meta Box Field Inputs NOT saving?
- Filter multiple custom fields Values with Check boxes
- Get registered custom fields or post meta even if empty
- Pass current post title to a predefined link
- Display Custom Field for a Specific Role, but not for Admin
- Correct syntax for retrieving custom field in CPT
- $TBA Getting Translated to $0 (Custom Fields)
- Walker class for sub-menu with ACF fields
- Hide text if one custom field out of two is empty [closed]
- Add custom fields to existing posts (admin pages)
- Multiple instances of TinyMCE are removing tag
- Echo the custom field value from the latest post from the ‘video’ post format?
- Custom Field – Do Not Show if Value is Empty?
- How do i get the attached images with custom value checked?
- How to disable Edit Post and Allow only Custom Field?
- Convert attachment ID into url?
- How to query an out put value?
- What’s the best way to implement custom widgets on a per post basis?
- Displaying Meta-Box Data Properly
- Retrive Image URL of Custom Fields in Theme
- do_shortcode close
- Search Results Page – Displaying Custom Meta Fields
- Interrogate a page within a loop to check template type or custom meta data (Pages vs Posts)
- using advanced custom field to control css hover color
- Custom Field data only shows after manual post update
- Custom field Search with Relavanssi
- How to exclude custom fields from search queries?
- Add Custom Fields After Page Title
- wordpress get_post_meta / the_meta to output custom field value
- How to show content of custom fields in search results?
- simple fields plugin custom query
- Set class if a meta value is set within post archive
- Allow HTML in Custom Metabox area
- Custom field metabox not showing in back-end
- checking liked user in wordpress rest api
- How to display selected option from dropdown list in a metabox
- How to use a custom field with add_rewrite_rule()?
- Load one page with parent and child pages
- Why can’t I get the correct post permalink
- Use a different catalog image than the featured image
- Login Api with Meta_key and Meta_value
- How to add a default field Name to post Custom Fields
- How to diplay a div only if at least one author custom profile field is filled?
- Set custom field value when reaching expiration date
- Extend WP_Customize_Control with Multiple Field Control
- Confusion on how to display custom field data
- How to use page metadata while using wp_list_pages()?
- Validating custom meta boxes with jQuery results in posts being saved as draft instead of published post
- Running a Gallery Shortcode in a Custom Fields Widget
- How to allow user to add to, but not edit, a post?
- Custom Metaboxes, multiple post selection
- How to sort Custom Fields by a value
- How to organise via Custom Fields on Category Page
- Calling Custom Field within Function wrapped with Divs.
- Multiple image uploader under editor?
- Display custom field value into content with hyperlink
- how to add radio field on user meta on function.php?
- Archive for custom fields?