single page site with subpages

To me it’s very simple, but a bit static. You can make a new front-page.php with the structure you mentioned. Then first make some pages (i.e.: About us, Members 1, Contact etc.) in your wp-admin. And use the get_page() function to call different page [using their individual ID] into different zone. Am I right?

Enable infinite scroll on single.php [closed]

Here’s the direction to go, I think: The WP Infinite Scroll plugin works by identifying your page’s navigation and then, I think, loading the next link found there. So instead modifying the query on single.php, I’m now trying to modify the pagination. I’ve tried several pagination functions, such as posts_nav_link() and twentytwelve_content_nav( ‘nav-below’ ), neither … Read more

How to check for specific content in comments in the loop

I’ve answered my own question with some more reading and some messing around… I had to run a ‘foreach’ that cycles through the given post’s comments within the main loop. The following code looks at all the comments for each post that passes through the loop and checks for a specific string in the comments’ … Read more

Two loops by pre_get_post on same page

It will be good to know how you implement your code in header.php. You can try to move some condition to not affect all query? function my_pre_get_posts( $query ) { if ( is_admin() || ! $query->is_main_query() ) return; if ( is_post_type_archive( ‘propiedad’ ) ) { Becomes function my_pre_get_posts( $query ) { if(!is_admin()){ if ( is_post_type_archive( … Read more

connect last post with first post

You may install this plugin and then for the next link, use: <?php c2c_next_or_loop_post_link(‘%link’,'<img src=”https://wordpress.stackexchange.com/questions/259353/img-location”/>’); ?> and for the previous link use: <?php c2c_previous_or_loop_post_link(‘%link’,'<img src=”https://wordpress.stackexchange.com/questions/259353/img-location”/>’); ?> That’s it. Now the previous link of your first post should be the last post and the next link of your last post should be the first post. If … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)