You’re code is not working as you have an echo within an echo, try this code (not tested)
<?php
echo '<div id = "circ" style="background: url('.$src[0].'><ul><li><a href = "'.the_permalink().'</a></li></ul></div>';
?>
If you’re echo’ing something and then you want to add php within that echo you need to break the echo by adding ‘. $variable .’
Related Posts:
- How do I change/modify the_post_thumbnail(); html output?
- WordPress Shortcode and Dynamic CSS
- How to use SRCSET with get_the_post_thumbnail()?
- Multiple pages on one with different HTML
- WordPress loop specific thumbnail size
- Minify HTML, CSS, JS with PHPWee?
- How to display a value from a radio button in the options menu in wordpress
- How to scale image with equal width and height without distortion?
- Shortcode content output but not in correct place
- An unwanted inline style is added to my body tag
- Show post in slider
- How can I hide Home in my menu in a specific page?
- Missing sidebar parameter “fix” – before_content
- How Display Posts on category
- How to stop featured image thumbnail [set as background image] on blog index page just repeating same image across all posts
- how to remove metadata from the posts of my blog?
- Customize position of social icons in upme plugin [closed]
- Different post styles depending on category
- How create a Shortcode with hover and complex options
- WordPress Multiple Navigation bars
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- How do I add a custom css to all posts without affecting homepage css? [closed]
- height should be set to auto to avoid pixelation in the post thumbnail function
- Wrapping a Sidebar within
- Add Codepen animation as Preloader to WordPress
- Where can I find the inline-css of my theme header?
- Menu Custom Data Attributes
- Highlight the links without using dropdown
- Website completely messes up when logging out
- Need help removing […] after excerpt
- Link to page with posts of specific type
- Displaying images outside the content
- how to changes mobile menu toggle breakpoint in WordPress
- Background image no longer fits to screen now that project is in php files
- Add other class content with reference class value
- PHP function for horizontal Woocommerce thumbnails and badges
- I can’t go to the page archive-{post_type}.php
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- Help me I cannot link my font-awesome to my WordPress Theme. I have my font-awesome folder already in my project
- Drop down question
- WP Website is shown in HTML
- Can’t display anything through homepage text editor
- How to find and delete a menu item in php?
- WordPress Slider is not working
- How to display post meta bellow every posts
- how to add functions to my function.php using a child theme?
- Add a default style if no Featured image is selected
- Make a full-width wordpress page
- Target a specific container to style on WordPress storefront theme
- How to include different html tags in the header for different pages?
- user update profile for custom code
- Font-Family does not looks like how it should be [closed]
- Where to find the html for WordPress site? [closed]
- Show contact 7 form in popup
- WordPress – Image href for home menu nav not working
- How Can I Center the Logo in the Navigation Menu? [closed]
- Trying to customize wordpress drop down categories
- Cant get theme to change footer color through theme customizer
- How to customize posts in WordPress by using HTML and CSS?
- WP_Query not returning results
- Header location [closed]
- How do I link the side images?
- Parse error: syntax error, unexpected ‘}’ in
- Sorting Problem
- How to create a container in php then customise it in CSS
- Custom HTML/CSS Theme into WordPress – SEO considerations
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- How to create different templates for woocommerce single-product.php?
- Why would a GET variable one one page of a site cause a 404 error when a GET variable works on another page of a site?
- Adding featured image via PHP
- wp_enqueue_style with style.php and WordPress functions
- fallback image for featured image
- Displaying theme options in css
- Is there CSS to expand the gallery limit on Index Pages?
- Input data from email form not going to JSON file
- Show latest posts in a plain HTML website custom widget [closed]
- Hide HTML element (by class or ID) with PHP
- How to remove coupon dropdown feature
- Add html link in functions.php files of the theme
- How to Schedule Cronjobs for start of every month and year
- Handling PHP/HTML inside the output of a shortcode function
- Illegal string offset error in wordpress theme options textarea
- jQuery accordion menu
- Initial offset of number of posts in home page on the posts page
- How to replace URL protocol using PHP?
- Trying to change featured image from 180×180 to full width on home page
- Time Delay a URL Redirect for Specific Page
- I have a background-image in css file but don’t show in site.how to fix this prblm. i sent screenshot. thx
- I have a lot of JavaScript erorrs after SSL someone can help me?
- How to center all text body in single.php at once?
- AMP version of e-commerce without plugin
- Creating Log-In Page for backend server
- Vertical Menu for one page only
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- wp nav menu without label
- Pass the updated value of aid from form using ajax
- Combining fancybox with multiple thumbnail plugin
- How to display thumbnail if post is assigned one otherwise not
- How to use plugins_url() inside PHP stylesheet file [duplicate]
- Php echo into tag