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:
- How to add CSS class to custom logo?
- theme path in javascript file
- The proper way to include/require PHP files in WordPress
- How to insert a logo in the header?
- Why doesn’t default WordPress page view use force_balance_tags?
- Theme Customizer : how to create multiple-level panel
- What is the problem if I use CDN in my WordPress parent theme(built using bootstrap)?
- Is it possible to use line break in theme description?
- Automatic Updates For Private And Commercial Themes?
- What can I hook into after_setup_theme?
- add_image_size is scaling, even though crop is set to true
- How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?
- Which is the simplest theme for WordPress to use it as your base?
- “Cheatin’ uh?” error message on multple theme directories
- A theme that follows all the best practices to learn from?
- get_post() function returns post even if it is trashed
- How to highlight the current page in the nav menu?
- How to use bloginfo( ‘template_directory’ ) in array
- Should I update my _s theme?
- “Display Site Title and Tagline” checkbox not working?
- Setting a Default ‘Theme Location’ When Creating a Menu
- How to set page template on front using starter content?
- Different Admin Theme – Based on Role?
- Finding Page Template and Displaying Content
- Override Constants in Child theme
- How to correctly add JQuery in a WP theme?
- how to change a theme slug
- Same theme name issue with wordpress repository theme
- Removing feeds from header using a function?
- I want to get the home root path
- How to add code in the content area in a WordPress theme?
- How to add theme support?
- Translation Issue with WordPress Theme Check in comment_form function
- How to add filter the post thumbnail before save in database?
- Using esc_url with a hard coded url
- Broken template went invisible
- WordPress theme switcher
- Limitations when modifying wp_title with a filter
- How to edit theme functions file to modify pagination?
- Storefront child theme not applying parent theme [closed]
- WP_bootstrap_Navwalker_issue [closed]
- Font Awesome 5 Free – far working but fas is not? [closed]
- How to place HTML tags in content from the_content()?
- correct tags for validating input types
- Renaming a theme so it aids SEO and the theme used is hidden
- Integrate WooCommerce theme with a WordPress theme [closed]
- Automated Footer information
- How do you use WordPress for a website that’s not in a blog format?
- WordPress 3.8 Backend Admin Color Scheme add more scheme how to do?
- Theme thumbnail in dashboard
- How to change the theme directory uri for localhost?
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Managing WordPress Theme
- featured content: which area does this cover [closed]
- Which cache is kicking
- searchform.php doesn’t work properly
- Customizer: get_preview_url() inside customize_save_after hook
- How to track a users last visited page?
- Shortcodes do not work in own template
- Adding Bootstrap to WordPress TwentySixteen Theme
- Is there a way to switch to another theme?
- New to WordPress – Read the Codex, Other Docs; Still Confused
- Why I obtain different visualization when I run the website on my local machine and on remote server?
- How to use the _S framework
- When trying to set title, not sure how to edit it for different pages
- Post archives link yields a 404 Not Found
- Get video from the post on homepage
- static front page ONLY for certain themes?
- How to add cropped custom header image?
- Open portfolio image in light box
- Let visitors show/hide a type of content
- WordPress Themes Directory: Template which hits the standards?
- how to add a badge on product based on filter?
- How to change a local wordpress installation xml export file urls? and change them to what if you don’t have a live website?
- Any way to change/add to the theme name dynamically?
- Let user to upload multiple time
- how to create/register menu items that can be added to menus later
- Theme does not allow shortcodes
- What is an alternative to not using child theme to customize a WordPress theme?
- How to make menus, footer, sidebars multi language
- Different WP Rest API custom endpoints across different themes
- How to generate a rtl.css file for themes?
- change wordpress website logo url [duplicate]
- register_theme_directory() sees custom themes directory, but blank frontend
- hide/show a div in wordpress
- Providing updates to your WordPress theme
- One-Page WordPress Template
- How one category can have different fields?
- How to create multiple pages in a client theme?
- How do child themes work?
- Using Customizer value in an external PHP file inside a theme
- adding navigation to genesis themes
- Standard Way To Do Custom Work Within A Page?
- Show post thumbnail only if it exists using timthumb
- Add Dynamic Sidebar to Exisiting WordPress Theme [closed]
- How can I install my custom-made theme on a wordpress.com blog? [closed]
- Getting all months in one year WordPress Archive
- .submenu class missing in output from wp_nav_menu
- What is the point of using the front-page.php template? [closed]