JonasVorwerk
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Page Permalinks not working on running siteFinally found the bug… I’ve created a taxonomy called: “year”
This caused the bug!Forum: Fixing WordPress
In reply to: No .htaccess filejust create one!
create an empty file with .htaccess as filenameForum: Fixing WordPress
In reply to: Site very very slowA good super fast host usually solves all speed problems, this is if your template is good.
If your template is not optimized then you should dive into this topic. First use your webbrowsers web-inspector to see what is causing these delays. Could be image sizes, external files, like fonts, scripts and so on…
https://codex.www.ads-software.com/WordPress_Optimization
Have fun!
Respect!
Hey Jordy,
Great to hear from you.It’s a straight forward ajax call with in functions.php:
//load posts
add_action(‘wp_ajax_loadPosts’, ‘loadPosts’);
add_action(‘wp_ajax_nopriv_loadPosts’, ‘loadPosts’);
function loadPosts(){
$args = array(
‘posts_per_page’ => -1,
‘post_type’ => ‘portfolio’,
‘post_status’ => ‘publish’,
‘category_name’ => $_POST[‘category’]
);$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) {
$the_query->the_post();
get_template_part(‘loop-post’);
}
}
wp_reset_postdata();
}It returns just a basic loop: loop-post.php
<div postid=”<?php the_ID(); ?>”>
<div class=”post-title”><?php the_title(); ?></div>
<div class=”post-permalink”><?php the_permalink(); ?></div>
<?php if ( has_post_thumbnail() ) { the_post_thumbnail(‘thumbnail’); } ?>
</div>But the thing is that the the_post_thumbnail() function returns the “normal” html and not the stuff that is required for Picturefill.
Hope to hear from you!
ps: if this is covered I back you up with the pro version ??Same here, any solutions yet?
Forum: Plugins
In reply to: [Jetpack - WP Security, Backup, Speed, & Growth] Jetpack JSON exampleHello Jeremy,
Thanks for your quick response. Didn’t read the oauth2 page.Stuck at the authorization endpoint:
“Someone may be trying to trick you into giving them access to your site. Or it could be you just encountered a bug :). Either way, please close this window.”
I’ve no experience with Quick Cache so I can’t help you with this.
I think it really doesn’t matter…. but feel free to add an option “cookies or sessions” to the plugin.
Forum: Plugins
In reply to: [Mobile theme switch] [Plugin: Mobile theme switch] Mobile=off not workingSorry for my late reaction, for some reason I don’t get emails from this blog.
Today I’ve upgraded the plugin and it should work properly right now!Forum: Plugins
In reply to: [WP Supersized] [Plugin: WP Supersized] Custom post typeAfter some digging, file “includes/WPSupersized.php”
Line 1323:
$postType = array (‘post’, ‘page’, ‘projects’);Just add your custom post type there and the super sized pane shows up at your custom posttype posts.
Forum: Fixing WordPress
In reply to: multiple query_posts into one "AND"This means duplicate posts which we don’t want..
Thanks again!Forum: Fixing WordPress
In reply to: multiple query_posts into one "AND"That’s not what I’m searching for.
The result I’m looking for is 25 last posts + all the posts form certain categories