Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Hide author from search results meta, still display date and categories

As stated in my comment the best solution would be to create a child theme and edit the file generating the post meta. This would give you full control of what is being generated and you won’t have to worry about hiding unwanted content via CSS.

However, you could hide the text nodes and show the elements you want by doing something like this…

    .post-meta {
        visibility:collapse;
    }

    .published {
        visibility:visible;
    }

Note: The above hidden items will still keep their space in the DOM, so you could add float:left to .published to break the flow.

Related Posts:

  1. how to remove metadata from the posts of my blog?
  2. How to update custom fields using the wp_insert_post() function?
  3. Adding first / last CSS classes to menus
  4. WordPress Admin Bar pushed Sticky Footer off the bottom of the page
  5. Get meta_id along with meta_key and meta_value
  6. How to target with css, admin elements according to user role level?
  7. How can merge two arrays values in one array and save in database
  8. Check if user already visited this post today
  9. Display all meta for a post?
  10. the_author_posts_link css class
  11. How to display multiple Post meta_key/meta_values by SQL query
  12. WordPress Shortcode and Dynamic CSS
  13. the_post_thumbnail() based on the Post ID
  14. How to use multiple query with same meta key
  15. How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
  16. How to update single value in multi dimensional Post Meta?
  17. “wp_enqueue_style();” don’t load new edited style
  18. Best way of adding CSS which can be manipulated by the user via theme option panels?
  19. Need help on WordPress and php
  20. Multiple pages on one with different HTML
  21. functions.php not adding css to website?
  22. Why is my get_post_meta always empty
  23. Compare two meta key values against each other inside the get_posts array?
  24. wp enqueue style and style sheet depth
  25. How can update custom meta for all posts
  26. WordPress Customizer not setting default value upon initial install?
  27. Theme Customizer – Dynamic CSS PHP File
  28. CSS saved & enqueued, but wordpress doesn’t load css text, only file
  29. Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
  30. WordPress loop specific thumbnail size
  31. WordPress doesn’t include css
  32. Understanding child theme functions.php
  33. wp_enqueue_style with style.php and WordPress functions
  34. Is it possible to use the featured image of a page as a css background without inlining?
  35. if file_exists not working with wp_enqueue_style
  36. Use ajax to update_post_meta
  37. Want to create Child theme, but already edited Parent theme css files and some php files
  38. Minify HTML, CSS, JS with PHPWee?
  39. Using PHP to toggle stylesheet and header image, set in cookie
  40. Archive dropdown styling not applied
  41. How to display a value from a radio button in the options menu in wordpress
  42. How should I best target dynamically served content?
  43. Different background-image by category
  44. Style every second widget?
  45. How to scale image with equal width and height without distortion?
  46. Add a Different CSS Class Into The Body Tag of Different WP Pages
  47. php syntax – how to concatenate properly – echo bloginfo(‘stylesheet_directory)
  48. how to increase custom post value by one most efficiently?
  49. Batch update a post meta field value of each post in Post Type
  50. wp nav menu: add attributes to menu items [duplicate]
  51. How to Display Image Meta underneath EVERY image in EVERY post
  52. WordPress override bloginfo variable
  53. Put CSS inside a PHP file and include it the right way
  54. Change description on specific WooCommerce product status change
  55. Shortcode content output but not in correct place
  56. An unwanted inline style is added to my body tag
  57. Displaying theme options in css
  58. Show post in slider
  59. Use WP_Query in shortcode
  60. Problem adding class to body_class
  61. Add a custom stylesheet for BlackBerry
  62. How can I hide Home in my menu in a specific page?
  63. Missing sidebar parameter “fix” – before_content
  64. Get different images for mobile and desktop with php, advanced custom fields without using js and ajax
  65. How Display Posts on category
  66. Get Current User Id Inside a Loop Returns 0 For a Shortcode
  67. Random order of WP_Query results with highest meta value
  68. How to stop featured image thumbnail [set as background image] on blog index page just repeating same image across all posts
  69. Slider loading issue
  70. Plugin CSS not enqueing
  71. Hide Hamburger Menu On Specific Page (Front Page/Home Page)
  72. Parent theme CSS overriding child CSS rules
  73. The text box have space character
  74. How can I create a list of page titles from custom meta values?
  75. Trying to remove post thumbnail with plugin
  76. Randomly Assign an Image’s Alt Text Based on Data From Post
  77. How to style options page in dashboard?
  78. Theme Options Page – User Updates Logo
  79. Advanced Meta Query for Large Calendar Website (12k+ posts) (175k+ wp_postmeta rows)
  80. How to use my style.css file outside of wordpress subdomain?
  81. Dynamic Stylesheet loads but doesn’t finish
  82. How to add date to navigation bar
  83. Selectbox in admin panel function linking to CSS
  84. Can I install/embed WordPress on a ‘single page’?
  85. How to create different templates for woocommerce single-product.php?
  86. How to modify default tags in wp_head()
  87. How do I make a shortcode to display Dokan seller badge list?
  88. Live Preview while customizing is not showing the updates while editing in WordPress
  89. Editing stylehseet url in head section of WordPress
  90. ACF block gutenberg aligncenter don’t work
  91. Sort Woocommerce Products with Numbered Titles Numerically
  92. separating column the variations from the add to cart button woocommerce
  93. How can we upload custom page files?
  94. HELP PLEASE PHP slider css
  95. Calling a PHP function from a menu item
  96. Embed dynamic media query in a Gutenberg block
  97. Get generated block styles programmatically
  98. Is it possible to remove the “Shop” title from the WooCommerce catalogue? [closed]
  99. Removing website URL in comments causes misalignment of submit button and tickbox
  100. How to add global CSS to all webpages without installing any plugin?
Categories PHP Tags css, php, post-meta
Page with some post value id showing page not found
Is it possible to check if password is correct in wp_authenticate_user?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress