Probably the easiest thing to do would be to fetch the fields above your table, and assign them to variables:
$anime_anname = get_post_meta($post->ID, 'anime_anname', true);
$anime_angenre = get_post_meta($post->ID, 'anime_angenre', true);
...
Then just wrap the table in an if statement that looks like the following:
if (
!empty($anime_anname)
|| !empty($anime_angenre)
|| ...
) {
// Table goes here.
}
Of course within your table, be sure to use the variables as well, rather than fetching the feeds again.
Hope that this helps.
Related Posts:
- How to make a image-size selected by default in Media upload – WP v3.5
- Hide main div if wp_nav_menu is empty
- How to draw media details for Isotope gallery using Photoswipe
- Add Useragent to the body class?
- Remove wp-mediaelement.css from wp_head
- add_filter to post-gallery and remove all ‘s?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- show limited tags in an article
- delete an array element when its date expires
- Using a function written in my functions.php file within the header.php file
- Disable External Pingacks on WordPress Posts and Only Allow ‘Self Pings’
- Woocommerce: Is it possible to overide the settings for allowing to purchase out of stock products [closed]
- Can I change a variable in a content part while calling it?
- javaScript in section of WP API
- WordPress Redirect: Default Password Reset URL [duplicate]
- Shortcode return function with link href inside PHP
- Function not working at one place
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- How to remove or change the “W” icon in “My Sites”?
- How to prevent WP_Query function from returning all posts when empty?
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- Firing schema via code in functions.php doesn’t work
- foreach loop still echoes array
- dynamic dependent select dropdown
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- getting logged in user info (wp-load.php) from parent directory
- wp-comments-post.php file returns a blank page
- Add .htm extention to a custom taxonomy
- Custom gallery in wp3.5
- How can I modify footer when footer.php calls to another file?
- Noscript not working as it should in wordpress site
- How to use theme function in post/page?
- esc_url( ) won’t use https
- Content filter won’t work
- Where is this function’s callback getting its arguments from?
- Why does the post_type_link hook everything twice?
- Warning: in_array() null given in PHP function
- Use post ID in functions.php file adminside
- How to: Conditionally Enqueue JS and Stylesheets, for Custom Post Type (Single and Archive Templates)
- use loop to return blog details
- How can I count ACF sub_field with a certain value
- change the default order of posts only for specific categories
- Fetching Initials of the Commentator in the WordPress Website
- Adding function to child theme’s function.php
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Missing a text-domain esc_attr_e
- Custom posts password protect
- How to get post category list as select in front-end?
- How to use functions [closed]
- Splitting the_content() by size?
- Extract and display user infromation on an automatically created page
- Is it legal to redefine wp_password_change_notification in a mu plugin?
- How can I assign separate stylesheets to different pages?
- Menu not styling. New menus functionality giving me a headache
- How to set value selected using select2 jquery plugin
- Workaround for og:image unsupported webp image type, Yoast SEO?
- Disclaimer that will show every refresh of the page
- Dynamically switch file in get_template_directory_uri() | Function [closed]
- Using ACF Relationship field to set post type to draft or published status
- Providin exception to WordPress wp_nav_menu Custom CSS Classes
- Woocommerce My acount page
- Dropdown category field inside repeatable metabox
- Retrieve alt text by referencing the img src
- Ajax filter with loadmore button
- How can i avoid duplicate same post in wp?
- Child theme overirde template-tags in a theme built on underscores in inc/template-tags
- Delete post meta by serialized meta value
- Custom meta box is not displaying value showing tag as empty
- Menu not updating for logged in users after redirect
- Create a temporal post
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Add parent menu item in sub-menu in custom nav_walker
- All categories options or All categories not Populating
- WordPress load javascript file if something… (after the page is loaded)
- Add class for the_post_thumbnail_caption()
- Getting page / post URL on publish and / or update
- Wrapping shortcode content in a span or link
- Weird Behaviour: Not all WordPress Posts appearing
- Save the outputted image into the Media Library, with a different filename and extension
- Custom Taxonomy as Link
- How to fix blank pagination links?
- Adding ID to a Listing but not inside WP_Query while
- adsense code showing on random post thumb
- WordPress display name string manipulation
- How to extend the page editor?
- which table updated after logout?
- Accessing WordPress Functions get_permalink() in Vanilla PHP?
- How to return a Boolean for a page that is a subpage thru its name?
- I need a button to appear when not loged in and another when logged in, I need help fixing code PLEASE!
- Saving User Input to PHP Variable
- Undefined variable notice [closed]
- How to hide .js files on wordpress website using php or wp plugins or any? [closed]
- WP Custom tables query
- Alternative to php echo within code
- Add multiple HTML attributes to an Elementor button
- Automatically change insurance quantity based on cart total [closed]
- /page/2/ redirect to 404
- How to pass value to add_filter wpcf7_form_tag from another function?
- hiddenQuestions.find is not a function