laptopsticker
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Contact form 7 AJAX not workingThe problem was in the jquery slim minified.
Used the full jquery.
Forum: Developing with WordPress
In reply to: Display a list of custom taxonomy terms and their postsEDIT: Never mind the below text… the below code works if you just substitute “category” for your custom taxonomy and “post” for your custom post type.
I’m leaving this in case someone else needs this solution.
I also found this code, but it only displays the taxonomy terms, not the posts.If the two codes could somehow be combined… then I’d have what I need.<?php $cat_terms = get_terms( array('category'), array( 'hide_empty' => false, 'orderby' => 'name', 'order' => 'ASC', 'number' => 6 //specify yours ) ); if( $cat_terms ) : foreach( $cat_terms as $term ) : //var_dump( $term ); echo '<h3>'. $term->name .'</h3>'; $args = array( 'post_type' => 'post', 'posts_per_page' => 10, //specify yours 'post_status' => 'publish', 'tax_query' => array( array( 'taxonomy' => 'category', 'field' => 'slug', 'terms' => $term->slug, ), ), 'ignore_sticky_posts' => true //caller_get_posts is deprecated since 3.1 ); $_posts = new WP_Query( $args ); if( $_posts->have_posts() ) : while( $_posts->have_posts() ) : $_posts->the_post(); echo '<h5>'. get_the_title() .'</h5>'; endwhile; endif; wp_reset_postdata(); //important endforeach; endif;
- This reply was modified 4 years, 8 months ago by laptopsticker.
- This reply was modified 4 years, 8 months ago by laptopsticker.
- This reply was modified 4 years, 8 months ago by laptopsticker.
- This reply was modified 4 years, 8 months ago by laptopsticker.
- This reply was modified 4 years, 8 months ago by laptopsticker.
Forum: Fixing WordPress
In reply to: editor-styles.css not workingThank you!
This worked.(sorry I didn’t reply sooner)
Forum: Plugins
In reply to: [WooCommerce] Customers see blank page after logging inYou’re right. For some reason the “My Account” page didn’t exist in pages and so it wasn’t set up in Woocommerce settings.
Thanks!
Forum: Plugins
In reply to: [WooCommerce] "WooCommerce Data Update Required" Keeps Showing UpOh. Sorry. Read it wrong.
It was a WordPress Database Update issue that I was talking about.
Forum: Plugins
In reply to: [WooCommerce] "WooCommerce Data Update Required" Keeps Showing UpI get the same thing on a site that has no Woocommerce installed.
Forum: Fixing WordPress
In reply to: Where The F*** Does this Cache come from?You were right. Hosting side cache is active. Thanks again!
Had to add this to my php file
<?php opcache_reset(); ?>
or this to my .htaccess file
php_value opcache.revalidate_freq 0
Forum: Fixing WordPress
In reply to: Where The F*** Does this Cache come from?Thank you for the response. I will check.
Forum: Plugins
In reply to: [Custom Post Type UI] Change Custom Post Type Slug and NameI managed to change the name of a Custom post type.
But at first it just created a new one.
Then I noticed that there is a “migrate posts” checkbox. So I deleted the newly created type and tried again.
This time it worked.
Maybe you could have a warning whenever the plugin detects that someone is trying to change the slug.
Forum: Plugins
In reply to: [Database Reset] Deletes the user. Useless.I don’t need a plugin to do this. I guess maybe there are people who do.
Forum: Fixing WordPress
In reply to: Exporting/Importing CPT's and Custom TaxonomiesOkay… Somehow these Custom Post Types are connected to the theme.
If I switch the theme then they disappear.
Does anyone know why and how this happens and if there’s a way to “unconnect” these Custom Post Types from the theme so they would work with every theme?
Forum: Fixing WordPress
In reply to: Exporting/Importing CPT's and Custom TaxonomiesHi Randy. Thanks for the response.
But…
- This plugin requires to export/import one module at a time. Meaning post, page, category, etc. Which makes it completely useless.
- The tutorial video sucks and wastes time.
- When importing I already have to have custom post types created etc. Which again makes it completely pointless.
I would’ve just done it by exporting/importing the database, but I’ve wasted hours fruitlessly exporting&importing databases on different hosts and ended up doing it manually before.
But since plugins didn’t work I tried it anyway… And it imported everything EXCEPT Custom Post Types!
What the hell?
Why does WordPress make importing and exporting Custom Post Types so difficult?
Forum: Fixing WordPress
In reply to: WordPress 3.9.2 Update Broke My themeThe theme wasn’t updated. WordPress was updated. Even if it was completely original theme by me, I would still have gotten this problem.
Anyway… I changed the theme so it’s not broken anymore.
But I still find this javascript or whatever “flying post” animation annoying and broken. So if someone could tell me how to turn it off I would very much appreciate it.
Forum: Fixing WordPress
In reply to: WordPress 3.9.2 Update Broke My themeI guess I’ll just have to change my theme to work differently than it does right now.
Forum: Fixing WordPress
In reply to: WordPress 3.9.2 Update Broke My themeI customized the theme alot. It didn’t have a sidebar before, so they can’t help.
Plus it was a free theme.