It looks like you are providing the [thumb]
shortcode with a string that is literally 'http://example.com'
. I am guessing, but I think you need to loose the single quotes wrapping the URL:
<?php echo do_shortcode("[thumb]".bp_profile_field_data('field=2')."[/thumb]"); ?>
So that you only pass the URL and no extraneous characters.
Related Posts:
- Disable email notification after change of password
- Run WP-CLI using PHP
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- Plugin update error message
- How to build an API as a plugin
- category_name not working (not showing up in sql query debug)
- Update Multiple Post Meta for the Same Post In One call?
- WordPress Hook that will run when media file deleted
- Set a User as Author of all ‘New Posts’ posted
- How do I configure WordPress to talk to a Microsoft SQL Server database?
- Calling function from within functions.php returns unwanted value
- Check if a class exists within a method
- How can I make the “Preview Post” button save and preview in the same window?
- Cannot run the code after I activate the plugin
- Calling a plugin in theme development
- Unable to activate wordpress importer after installing it
- force customers to add only single item to card per purchase EDD [closed]
- How to get post URL in the_content filter?
- Write to / remove from default .htaccess file from plugin?
- WordPress Ajax Callback
- printf – problem to understand code
- Why isn’t admin_notices displaying my text? [Simple Plugin, Beginner]
- add_query_arg not working
- How to Use Parameters with a Do_Action Function Within PHP Tags
- How do I pass a post ID to the page URL?
- How would I go about creating a user ranked post popularity page?
- WordPress: PHP code rendering in the wrong place
- New to wordpress, Question about editing PHP
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- How to edit content before post update
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- Customize permalink wordpress category id
- Take input from form and pass it to function using a wp-plugin
- Self-serve ad system like Reddit’s for WordPress? [closed]
- Create a plugin from within WordPress
- Class variables not correct on page
- Load Javascript from Plugin in One Page Only?
- Why is one phpunit test throwing an error on one class when all other classes are similar without error?
- WordPress call_user_func_array() expects parameter 1 to be a valid callback, class
- Call plugin with php function
- Why is my custom post type not being activated on plug-in activation?
- Setting Up PHP Workflow in WordPress
- How can I exclude a dynamic URL to show a popup created using ‘WordPress Popup’ plugin
- iframe not showing in post (with “allow php in posts” plugin activated)
- how can I do something on new user registration?
- Any idea how to get something like this to work? [closed]
- output html on post or page from custom plugin [closed]
- How can i add simple code in only in posts by function.php
- Hide DIV if empty – Plugin Gallery
- Profile / benchmark wordpress on apache?
- Way to send multiple values for column to MySQL?
- preg_replace() No ending delimiter ‘.’ found [closed]
- Retrieve Plugin Settings and insert into XML string
- Categories from front-end, checkbox selection doesn’t work
- Pagination not working
- exec-PHP shows output at bottom of page
- Can you echo PHP code from a variable?
- Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)
- Can I disable xml-rpc by setting it to false?
- Getting current user data with MySQL statement
- how to validate input field in wordpress generated with wpform plugin
- Conditional delete metadata does not works
- How can I adjust my function so the page editor still loads in the backend?
- Submitting form to PHP
- Looping the data from WordPress database using foreach
- Rename a folder via HTML POST request
- Google Maps for Woocommerce Checkout
- working code, not working – Plugin Dev
- WordPress plugin blog creation
- Get and Update Most Meta Value as an array in HTML form
- Custom shortcode being shown in WPBakery backend rather than the block
- Modifying server’s response to API endpoint
- Change Jobs for WordPress templates
- Defining constant in a plugin to use in another plugin
- user specific private content
- submit form data to wordpress existing database table using my plugin
- register_activation_hook doesn’t fire at all
- Custom SportsPress list
- My ajax request don´t work and return 0
- How to allow customers to input a text as a product variation *and* charge per character?
- How to copy data from user profile page (profile.php) to theme customizer
- display user input using ajax in wordpress
- Plugin Breaking WordPress Login
- How can I allow for the password protect feature to allow visitors to enter any number at all?
- Can’t insert files in other inputs
- Including a PHP file via a function that is part of a plugin?
- How do I output user_registered time in my correct timezone?
- How to tweak a plugin without preventing it from updating
- Place max_execution_time in plugin [closed]
- Creating a press page for our project
- how to search through plugin in wordpress cimy-user-extra-fields?
- Integrate Razorpay quick payments plugin with contact form7 plugin
- wordpress illegal string offset ‘parameter’ error
- Translate text for empty product
- How to get URL param for pagination in shortcode?
- Make plugin admin page visible to other roles
- Is there any WordPress Plugin that provides video editing from front end side? [closed]
- How Create LastMod and Update Date Only on Taxonomy Category and Tags
- Accessing Correct Database to Create REST API Endpoint
- How do I replace a logo image that’s hard-coded into a plugin’s logo.php file?