Lai Xuancheng
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Doubt about Divi theme builder in footer and polylangHi there, I’m also having the same question, in my case I’m creating Post Single template and I’m adding “Contact Me” section in the end of the content but I need the title of the section be translatable.
Is there any way to do this?
hey @northernfutures, thanks for sharing!
Forum: Fixing WordPress
In reply to: Post type como parte de outro post typeDependendo do que for, sera que n?o vale a pena criar uma taxonomia? assim ele funcionaria como as categorias.
Forum: Developing with WordPress
In reply to: Avoid showing same text in multiple loopsI’m so sorry, you’re right, there’s a bit of issue in the code, please try this one:
<?php query_posts('post_type=wear&meta_key=sold&meta_value=yes'); ?> <?php if (have_posts()): ?> <p>I'd like this presentation to be showing one time if there is the sold</p> <?php while (have_posts()) : the_post(); ?> <h1>Yes, there is some sold</h1> <?php endwhile; ?> <?php else : ?> <h1>No sold available</h1> <?php endif; ?>
Forum: Developing with WordPress
In reply to: Avoid showing same text in multiple loopsIf you want to show a message if have posts, maybe you can change the code to be like this:
<?php query_posts('post_type=wear&meta_key=sold&meta_value=yes'); ?> <?php if (have_posts()): ?> <p>I'd like this presentation to be showing one time if there is the sold</p> <?php endif; ?> <?php while (have_posts()) : the_post(); ?> <h1>Yes, there is some sold</h1> <?php endwhile; ?> <?php else : ?> <h1>No sold available</h1> <?php endif; ?>
Forum: Fixing WordPress
In reply to: How to filter the blog posts I edited in April, 2019Hey @rossross , you can use WP Last Modified Info to add <b>Last Modified</b> column in your Post page. And delete it if you’re not longer need it.
Forum: Fixing WordPress
In reply to: Como enviar Datos a una Base de datos en WordPressHola @monitoronline , creao que tu puede crear un Custom Post Type para guardar los datos. Entonces tu puede utilizar WordPress API para insertar.
Sorry if you can’t understand me, I’m doing my best to speak Spanish.
As I tested yesterday, this bug seems affect only edition mode, breakpoints are working fine in the real view.
Hi @cavalierlife , after a whole day working, I figured out the problem was because of missing
wp_footer()
- This reply was modified 5 years, 10 months ago by Lai Xuancheng.
I just resolved the problem!
Meta query is an array containing arrays and not only one array (you can set multiple queries). So it should be:$meta_query = [ [ 'key' => 'codigo_de_barra', 'value' => $searchStr, 'compare' => '=', ] ];
Solution comes from: https://wordpress.stackexchange.com/questions/330524/meta-query-is-not-working-on-elementor-custom-query-filter
I’m not sure that I understood your question, but I tried this code on the my
/category/car
$categories = wp_list_categories(); print_r($categories);
And it’s returning all categories that I have.
- This reply was modified 7 years, 3 months ago by Lai Xuancheng.
- This reply was modified 7 years, 3 months ago by Lai Xuancheng.
Forum: Developing with WordPress
In reply to: register_post_type is not supporting thumbnail@swansonphotos, Thanks for the tips, I didn’t add
add_theme_support
, now is working! thank you so much!- This reply was modified 7 years, 3 months ago by Lai Xuancheng.
Forum: Fixing WordPress
In reply to: Footer do not show on Google ChromeIt’s seems working for me:
Forum: Fixing WordPress
In reply to: Footer do not show on Google ChromeCould you post some part of code? I’ll try to help you
Forum: Developing with WordPress
In reply to: register_post_type is not supporting thumbnailProbably I didn’t add the theme to support thumbnail! good idea! I’ll check it at home.