Inicio › Toolset Professional Support › [Resuelto] How can I hide the CPT metadata?
Problem:
The issue here was that the customer wanted to hide the Post meta on his CPTs
Solution:
The solution to this is to inspect the page using the google chrome or your browsers page inspection too to find the html that is displaying the post meta.
Then you will just set it using css to display: none;
So e.g you will add this custom css to your site.
.someclass{ display: none; }
Relevant Documentation:
0% of people find this useful.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
Etiquetado: Content Templates, Views, Views plugin
Documentación relacionada:
Este tema contiene 30 respuestas, tiene 3 mensajes.
Última actualización por Francisco Ramón Molina Busquiel hace 7 años.
Asistido por: Shane.
With Views I can disable the CPT title, but the metadata is still displayed (Author, Date, Category).
How can I hide the metadata?
Look at the screenshots.
Thanks for your help.
Best regards,
Francisco R.
Hi Francisco,
Thank you for contacting our support forum.
Usually you would need to remove the reference from the theme itself , however you can try using this plugin below.
https://wordpress.org/plugins/wp-meta-and-date-remover/
Thanks,
Shane
I installed this plugin, I tried several configurations, but it does not work, it removes the metadata from my post, but it does not remove them from my new CPT.
Look at the following link:
enlace oculto
Hi Francisco,
Would you mind providing me with admin access to the website so that I can remove the meta data for you ?
The private fields will be enabled for your next response.
Thanks,
Shane
Hi Francisco,
Thank you for the credentials however they dont seem to work.
Could you check on this and let me know if it works for you.
Thanks,
Shane
Sorry, is
enlace oculto
Hi Francisco,
Try commenting out this line in your theme and let me know if the issue still remains.
$show_default_title = get_post_meta( get_the_ID(), '_et_pb_show_title', true );
Thanks,
Shnae
Although I comment that line in single.php my CPT still shows the metadata, so I've put it back as it was.
Please, some help with this problem.
Hi Francisco,
It seems that we will need to hide it with ssome css. Add this css to your website.
.et_post_meta_wrapper{ display:none; }
Please try this and let me know if it helps.
Thanks,
Shane
Shane,
Indeed, this code hides the metadata, but it has a big problem, it also hides the title, the metadata and the featured image of all posts on my site.
This is incorrect. This code can not be used. 🙁
Hi Francisco,
I see the issue.
I wrote the css to be more specific and this one should work.
#left-area .post-meta{ display:none; }
Please let me know if there are any issues.
Thanks,
Shane
This code is not useful either, since it also hides the metadata of the posts. I just want him to hide the metadata from my new CPT "Historial Versiones".
Please, I need to solve this problem. The days are passing and it is not solved. 🙁
Thanks for your help.
Hi Francisco,
What you're saying is that you only want this CPT to not have the Meta?
Are you using a content template for this cpt ?
Please let me know.
Thanks,
Shane