i think there is an error –
<img src="https://wordpress.stackexchange.com/questions/105525/<?php echo"http://s.wordpress.com/mshots/v1/'.urlencode(the_field('website'); ').'?w=200' ?>" />
it should be
<img src="https://wordpress.stackexchange.com/questions/105525/<?php echo"http://s.wordpress.com/mshots/v1/'.urlencode(the_field('website').'?w=200' ?>" alt="" />
And if this not work.
I think you use the_field(‘website’) function which actually not return result you can try
this code.
<img src="https://wordpress.stackexchange.com/questions/105525/<?php echo"http://s.wordpress.com/mshots/v1/'.urlencode(get_the_field('website').'?w=200' ?>" alt="" />
Related Posts:
- Is there a way to set default custom fields when creating a post?
- Importing data for advanced custom fields plugin?
- Gutenberg add a custom metabox to default blocks
- Filter post listing by meta value which is a date
- Extra profile field as select box?
- Matching Serialized Arrays with meta_query
- Pre-filling custom fields on New Post
- So much data in postmeta
- Make Custom Field Into A Link On The Front End?
- Show Custom Comment Fields when editing in admin
- How do I make a custom field choose an image?
- get_post_meta() unserialize issue – returns boolean(false)
- How to activate “custom fields” section in WP3
- Why isn’t my code to save custom fields in quick edit working?
- How to oEmbed from custom field, responsive to container size and responsive
- Custom Meta Boxes: Store two values in one repeatable field
- Gutenberg Custom Block
- How to customize default wordpress editor?
- Up/Down voting system for WordPress
- Custom Meta Field not Working with qTranslate [closed]
- Problem in custom meta boxes
- Loop through two different sets of custom fields
- Query Problem – Show posts within category ‘x’ that have a custom field between ‘y’ and ‘z’
- Add an advert every nth Paragraph
- Undefined index error when saving content on metabox
- Metabox with multiple fields added by user and upload box
- Get all meta keys assigned to a post type
- sort search results by custom fields using dropdown
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Get all posts that do not have a specific custom field without using a subquery
- How to query posts with certain custom meta data, and output Post data
- Custom Fields Not in Search Results
- I want to send an email when each post is published
- Creating a widget with a number of custom fields
- How to loop through certain custom field values
- add_action and remove_action if custom field exists
- How to Create Dynamic Fields in a Meta Box?
- Set front page option using custom fields?
- Add post meta fields, when creating a post using WordPress’ REST API
- Store array as single, serialized post meta field or many post meta fields?
- Custom Field Values not updating unless I click “Update” twice
- Get an advanced custom field after post publish
- update_post_meta for repeated custom field [closed]
- Can I create a template or doctype for my blog site?
- Custom field, add class to anchor tag
- Custom Metabox additional item
- How to combine custom fields to make one order-able value
- Updating Other User’s Metadata
- get_posts in meta box dropdown not showing latest posts
- Trying to reorder posts by custom field
- Delete custom fields when deleting posts
- Pull custom fields from custom posts within a loop
- Custom Query based on custom field of a single post
- How to display custom fields from a plugin
- comment meta_query for keys that aren’t yet set
- Link the retrieved custom field values to its respective posts
- Sortable custom field values from all posts on a page template
- Adding “meta” info to WP site PHP function?
- WordPress Media Uploader custom Javascript not working
- List custom queried terms in the edit-tags.php?taxonomy page
- Values entered in a meta box aren’t saved
- change order of images attached to post
- Display meta box dropdown (from custom post type) in the page post type
- How to Make Post Custom Column Editable
- how can I show name and value of Custom Fields together?
- Adding simple (one button) Audio player using Custom Fields?
- No result update a custom field using wp_schedule_event
- Single page WordPress website – custom fields or meta boxes or something else?
- Collect Data from NEXT item while in loop
- Order custom fields alphabetically
- Is it possible to compare the current time with a custom “start” and “end date
- Display metabox title for custom fields with values
- wpdb function insert doesn’t work
- Gutenberg add a custom metabox to default blocks
- Show Custom field value instead of title in WP Menu
- How to add code to custom field to every blog post via php?
- User Filter Options on Archive Page
- Getting user’s data, by custom field lookup (meta)
- Counting number of images from loop
- Login_form add to top of form rather then bottom
- Automatically set the_post_thumbnail to Custom Field Value
- Redirecting to an external URL
- Search one custom field?
- Can’t save meta field value if the title not set
- Why is wp_list_pages altering $post->ID of the page?
- How do you turn a custom field’s value into a permalink for that post?
- How to keep sharing stats after creating 301 redirects?
- Custom fields: dropdown values depending on other custom field value
- How do i get a specific user metadata using custom metavalue outside of wordpress?
- Custom search with meta fields
- How to retrive Custom Fields as Values for a Form field
- Use custom field value as href
- Custom fields doesnt work well with any postTAB plugin
- Colecting values from custom field checkboxes and displaying them in the post
- Build Array from Input Fields question
- Custom field for image, not showing image!
- Grouped Custom Meta Fields without plugin
- Google not index my Custom 404 page ?why?
- Multiple triggers when publishing, saving or updating a post in WordPress
- If possible a field ID transfom in a Custom Field?