You have to add the title attribute to the <a href> code surrounding the images that the Magnific Popup effect is being applied to.
The new code should look like this:
$thumb_img = get_post( get_post_thumbnail_id() ); // Get post by ID
$excerpt = $thumb_img->post_excerpt; // Display Caption
<a href="https://wordpress.stackexchange.com/questions/178297/{current_url_here}" title="<?php echo $excerpt; ?>" />
It would be a lot easier for me to help you out if you could paste some sample code in your question đŸ™‚
Hope this helps.
Related Posts:
- Sizing screenshot.png without losing aspect ratio
- The proper way to include/require PHP files in WordPress
- How to insert a logo in the header?
- Should `get_template_directory_uri()` be escaped?
- How To Add New Option Types To Option Tree?
- Page template in two level deep folder
- Child Theme not loading parent CSS
- Where do I find the functions triggered within a hook?
- Use of undefined constant FS_CHMOD_DIR – assumed ‘FS_CHMOD_DIR’
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- How do I get a parent theme modification from a child theme?
- Removing the default sidebar from admin panel
- how to pull wordpress post comments to a external page
- index.php is not loaded for single posts
- Why use while over if in single wordpress posts?
- WordPress website loads but is not displayed until page scrolled
- Setting a Default ‘Theme Location’ When Creating a Menu
- Theme Customizer not loading
- Is it a good idea to make whole theme widgetized?
- Single Theme folder for Multiple WordPress
- How i can get widgets areas working in customizer?
- Cutomize Colors utility: How to add more configurable colors to a theme
- Where is definied the theme location for the main menu in a WordPress template?
- How to correctly add JQuery in a WP theme?
- How to disable automatic colors in the Twenty Twenty theme?
- Same theme name issue with wordpress repository theme
- Removing feeds from header using a function?
- Gutenberg – editor-font-sizes in functions not working
- Cannot figure out how to overwrite files in child theme
- How to add theme support?
- WordPress post arrangement using post_class
- Customize the previous_post_link output
- How to use get_template_part instead of include_once?
- How to remove comment link title attribute?
- wp-cli: For development, how can I activate a theme that is on the local disk but not zipped?
- My Admin bar covers my sticky navbar [closed]
- WordPress theme switcher
- Single Page Design, Storing in Theme Options
- Limitations when modifying wp_title with a filter
- Edit footer via customizer
- WP_bootstrap_Navwalker_issue [closed]
- Font Awesome 5 Free – far working but fas is not? [closed]
- loading blank white screen of slide
- Child Theme’s style.css not loading in mobile browser
- Migrated WordPress site renders Chinese
- How to Find the Page the Front Page is Using?
- Customizer – loading settings/controls/sections/panels based on a id/page id
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- Overrite parent functions using child functions
- Does code in function.php differ from theme to theme
- 3 Level Deep Navigation Menu Not Showing All Levels
- How can I change the theme of different posts using a plugin?
- How to Have a Pure HTML Sub Directory In WP Site
- Theme not showing up
- Change image size depending on page
- Random white space before doctype
- How to add menĂ¹ section to my WordPress template?
- What are the critical theme files when building a custom theme?
- Why still output /wp-content/themes/twentynineteen?
- get_header action not working
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- How add built-in textarea in theme development?
- Remove h1 from 2015 theme
- WordPress pulling in random page themes
- Some doubts about WordPress handle the horizontal main menu visualization
- Filter didn’t work on content class (hybrid_post_attributes)
- Can’t change theme name
- How to remove permalinks links presents in each page of my site?
- Is there a way to serve different resolution images to different devices?
- How to make a function occurs for one time?
- How do I restructure the comment HTML layout?
- Theme: dropdown hover menu not showing up in IE/Edge
- Problem with pagination link (error 404)
- how to ensure responsiveness in wp themes? [closed]
- home is not working in wordpreess
- Is there a way to create sections under “Colors” panel in the Theme Customizer?
- Local theme changes upload on server but theme changes not showing
- WordPress Custom font not found
- Any way to permanently translate themes?
- New created Theme leads to malfunctioning Xampp Apache –> functions.php is cause
- WordPress Blog Page displaying nothing
- Import from HubSpot COS into WordPress 4?
- Theme Development : License help
- Why the slideshow is not shown in my theme?
- Theme automatically inserting “more” tag on every post
- Using wp_enqueue_script with social media buttons?
- Displaying Tags for the Page I’m On?
- How to make navigation a list without a plugin? [duplicate]
- Showcase your wordpress themes [closed]
- What is The Best Way to Make Parallax header effect for wordpress theme ?? pure CSS or using JavaScript? [closed]
- How to create full header but keep content narrow
- How do I add new layout width options in WordPress editor?
- How to show associated fields if checkbox is checked in customize widget screen using wp_customize?
- Dynamic nav menu with icons [closed]
- How do I send out an update for my custom wordpress theme?
- TItle In Latest Post is not using H1 Tag [closed]
- Is via.placeholder.com a good site to auto-generate placeholder images?
- Should we escape the values of constants?
- How to Add Dynamic Sliders to WordPress Customizer with JavaScript
- Why is wp_nav_menu() not removing the container around the nav ?