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. Adding first / last CSS classes to menus
  3. WordPress Admin Bar pushed Sticky Footer off the bottom of the page
  4. Display all meta for a post?
  5. the_post_thumbnail() based on the Post ID
  6. How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
  7. functions.php not adding css to website?
  8. Why is my get_post_meta always empty
  9. Theme Customizer – Dynamic CSS PHP File
  10. if file_exists not working with wp_enqueue_style
  11. Want to create Child theme, but already edited Parent theme css files and some php files
  12. Using PHP to toggle stylesheet and header image, set in cookie
  13. wp nav menu: add attributes to menu items [duplicate]
  14. Put CSS inside a PHP file and include it the right way
  15. Use WP_Query in shortcode
  16. Missing sidebar parameter “fix” – before_content
  17. How Display Posts on category
  18. Random order of WP_Query results with highest meta value
  19. Parent theme CSS overriding child CSS rules
  20. Trying to remove post thumbnail with plugin
  21. How to style options page in dashboard?
  22. Theme Options Page – User Updates Logo
  23. How to use my style.css file outside of wordpress subdomain?
  24. Dynamic Stylesheet loads but doesn’t finish
  25. How to add date to navigation bar
  26. Can I install/embed WordPress on a ‘single page’?
  27. Incorrect MIME type for assets with Valet
  28. Customize position of social icons in upme plugin [closed]
  29. Best way to schedule daily change in CSS parameter
  30. WordPress update_post_meta updating with empty meta_value field [closed]
  31. Which is the correct way to conditionally enqueue a CSS file?
  32. Use PHP in stylesheet to specify a background image based on Category ID
  33. Get post id within comments loop
  34. WordPress wp_add_inline_style unable to give hex colors?
  35. How to create table in wordpress without plugin? [closed]
  36. Add class to DIV depending on page loaded
  37. Liking a facebook page from wordpress website?
  38. trouble with page_id & highlighting current page
  39. wordpress admin plugin menu custom css
  40. How to use two meta_compare in an array?
  41. How to remove sidebar primary widget on Mobile on category page [closed]
  42. Where can I find the inline-css of my theme header?
  43. Remove empty terms from array, sort alphabetically, update back to repeating field
  44. WordPress yoast seo plugin – parse snippet var in meta description
  45. Using rules in Posts
  46. Website completely messes up when logging out
  47. Issue Enqueueing WordPress style.css
  48. Save the value of a wp_dropdown_pages
  49. How to add new CSS file to new PHP file
  50. Applying CSS on PHP variable [closed]
  51. How to check post meta isset or not empty during publish/save post?
  52. Timber right sidebar in WordPress theme
  53. get value from get_post_meta then reuse it in another get_post_meta
  54. How to find which .mo file is responsible for displaying a particular localized string?
  55. How to Remove Theme Style CSS inside Custom Plugin?
  56. Add other class content with reference class value
  57. Loop for recently (updated_post_meta) posts?
  58. Adding Custom css file in the wp-uploads directory with custom php functions
  59. How do I integrate vanilla Javascript to a wordpress website?
  60. Cannot dequeue Elementor Font Awesome css
  61. How to find and delete a menu item in php?
  62. Using zip code to display custom data in Admin Order Details
  63. WordPress Slider is not working
  64. How to display post meta bellow every posts
  65. How to let mobile navigation menu close when link is clicked?
  66. update_post_meta Not Processing Array Data (Not Sure What I Am Missing)
  67. Add Shortcode to ::before class
  68. Fix hover images blink
  69. Blog Image and Title in Right Sidebar
  70. When working with a post, almost all wp_postmeta are deleted
  71. Post Meta statement?
  72. Displaying POST content with HTML tags and all
  73. Updating Lat and Lng of posts automatically gives sporadic results
  74. How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
  75. Position a repeated article blocks
  76. Custom Thumbnails [closed]
  77. Click to expand menu
  78. Revision History for Entire WordPress Site
  79. wp add inline style in loop
  80. WordPress – Image href for home menu nav not working
  81. Display pages from specific page template
  82. get_post_meta is always empty when I use wp_mail
  83. How do I use CSS or PHP to customize WordPress Form Manager Plugin Table?
  84. Sidebar doesnt get updated?
  85. How to NOT override inline css rules
  86. How to add together (get the sum) a field from all author’s posts
  87. Add CSS class to PHP Statement
  88. How to add margin underneath woocommerce total price amount -> productpages
  89. Load files content [closed]
  90. How to display the date under the post title?
  91. Load slideshow.css file only if Slideshow is checked / on
  92. Predefine Magazine Style Layouts
  93. It’s not showing full content for posts pages in wordpress “[…]” while customing some changes in the style.css file [closed]
  94. Add a “Next Post” & “Previous Post” styled button manually to a post
  95. Sorting Problem
  96. hello can you advise how to fix the error?
  97. inner-wrap div pushing custom table far down on page
  98. Styling best practices for single pages/templates
  99. Embed dynamic media query in a Gutenberg block
  100. Get generated block styles programmatically
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
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 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