morena_loca
Forum Replies Created
-
Hey Bruce,
yeah there was an issue with the primary domain htaccess. Thanks all good now.
Crossing fingers.Forum: Developing with WordPress
In reply to: Query CPT that share the same taxonomy as the current CPTHey there!
Thanks so much. Ok I am going to check all that. It should be working. There must me a typo somewhere.
Thanks a lot for your help!
Forum: Developing with WordPress
In reply to: Query CPT that share the same taxonomy as the current CPTHey!
Thanks so much for your help. I tried that but it is not working. I have no idea why// In single-organisation.php To display last 3 products sold in the same city as the organisation <?php $custom_terms = wp_get_post_terms( get_the_ID(), 'city'); $args = array( 'post_type' => 'product', 'tax_query' => array( array( 'taxonomy' => 'city', 'posts_per_page' => 3, 'field' => 'slug', 'terms' => $custom_terms[0]->slug, ), ) ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); get_template_part( 'template-parts/content'); endwhile; wp_reset_postdata(); ?>Any idea what I am missing here?
Thanks for the $loop answer, obviously I forgot about that he he he.
- This reply was modified 5 years, 1 month ago by morena_loca.
Forum: Developing with WordPress
In reply to: Query CPT that share the same taxonomy as the current CPTHey there!
Thanks very much for your reply. But I didn’t quite get it. 🙁I came up with this but it’s not working
// In single-organisation.php To display last 3 products sold in the same city as the organisation <?php $custom_terms = wp_get_post_terms('city'); $args = array( 'post_type' => 'product', 'tax_query' => array( array( 'taxonomy' => 'city', 'posts_per_page' => 3, 'field' => 'slug', 'terms' => $custom_terms[0]->slug, ), ) ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); get_template_part( 'template-parts/content'); endwhile; wp_reset_postdata(); ?>Also, I have another question, These elements will be in a <section> how do I test if any post has been published in products/city ? If there are no products available, I would just add a message to say so.
Thanks a lot
Forum: Networking WordPress
In reply to: Multisite issue on domain not pointing to Public_htmlHello! Thanks
So I have called my hosting service provider to change that domain to be the main domain. The multisite is now sitting on PUBLIC_HTML.
I have created subdomains for a site saudad.zenuacademie.com.
and I added that site to my multisite.Now the issue I have is that when I try to access the subsite’s dashboard (https://saudad.zenuacademie.com/wp-admin/) I get a 404 message :
Not Found
The requested URL /index.php was not found on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at saudad.zenuacademie.com Port 443
I don’t know what to do…
Hi Thomas,
I have tested the code and it works well. Now, my issue is with saving the data when the user registers or updates it.1) I used the other code to add students profession with a dropdown menu. The profession is added to the database when the user registers but when he updates it, neither the account not the database records the update (I added the profession dropdown to the account screen).
2) I just can’t get the “save to db” work for the checkboxes and even if I did, I would have the same problem when someone updates the language. It won’t be recorded to the db.
3) Right now the language and profession are added to the bottom of the account (after the change password). Is there something I can do to add it before the change the password? (or just before the address) ** This is a nice to have. **
Sorry about all these questions. I have been looking everywhere and I just can’t find an answer.
thanks.
Hello Thomas,
Thank you so much.Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Social Menu not workingHi
I just restored a previous backup and now everything is back to where it is supposed to be. Thanks a lot for your help. OMG that was scary
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Social Menu not workingUPDATE
I restored my database and deactivated all my plugins and reinstalled WP. I even deleted W3C Cache.
It seems like when updating my database, all my pages, links from the social menu etc. were converted to posts. They are all showing up as posts.
This is so frustrating I am not sure what to do. I dunno if it is the new WP update that just crashed my whole site. OMG :'(
It just asked me to update my DB again for no reason. And this time, I got these error messages.
WordPress database error: [Table ‘MYDATABASENAME.wp_categories’ doesn’t exist]
SELECT * FROM wp_categories ORDER BY cat_ID
WordPress database error: [Table ‘MYDATABASENAME.wp_post2cat’ doesn’t exist]
SELECT post_id, category_id FROM wp_post2cat GROUP BY post_id, category_id
WordPress database error: [Table ‘MYDATABASENAME.wp_linkcategories’ doesn’t exist]
SELECT cat_id, cat_name FROM wp_linkcategories
WordPress database error: [Unknown column ‘link_category’ in ‘field list’]
SELECT link_id, link_category FROM wp_links- This reply was modified 9 years, 2 months ago by morena_loca.
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Social Menu not workingHey Jeremy,
I remember that at some point I received a message when trying to access my admin saying: Database Update Required. I think that’s what caused the issue because I can see the social menu in my menu tab. It’s just that the menu is blank (I added new links before posting my previous message but nothing happened). After that, I also realized that all of my website pages are missing. I am totally freaking out.1) I double check the version of my DB in the version.php and on the DB and they match.
2) I tried to deactivate all of the plugins
Nothing worked.
The pages appear in the database but not on my WP admin and therefore when you go to my website to land on a Home page with nothing in it. I am totally freaking out.I think there is a problem that is impacting both my Menu and my pages.
Could you help please?
Forum: Fixing WordPress
In reply to: Lost followersthanks Jan.
I sent an email. Hopefully they will be able to help.