single page site with subpages

i want to make a single page site which has subpages with following structure about us team -member1 -member2 contact and i want the output to be like <div class=”about-us”> team content </div> <div class=”team”> team content <div class=”subpages”> <div class=”member1″> member1 content </div> <div class=”member12″> member2 content </div> </div> </div> <div class=”contact”> team content … Read more

Enable infinite scroll on single.php [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic. Closed 7 years ago. Improve this question I have a … Read more

404 Page Not Found for Only One Post

I have 40+ posts on my blog. Only one of them is going to a 404 page when I click the title (visit the permalink). To see it in action: Look for the post “Cure for the common slug” and click the title (permalink: You will get the 404 error. Note that all … Read more

Problem getting single_template filter to work – I want to serve a different single.php file for posts in a certain category

I am trying to customize the behavior of my blog to serve a specific single post template based on the category the post is assigned to. I came across this filter in my parent theme which is what gave me the idea. The theme is Photo Workshop by Graph Paper Press. //add single post template … Read more

Help with figuring out the future post workaround

I’m posting this hoping to learn a bit about filters and $wp_query. I researched how to show a single post with a published date in the future when not logged in and found out that you can do this using this function, which I found here: add_filter(‘the_posts’, ‘show_all_future_posts’); function show_all_future_posts($posts){ global $wp_query, $wpdb; if(is_single() && … Read more

Best way to programatically add “rel” attributes to page and post images

For single posts and pages, I would like to add certain rel attributes to all the images on the contained therein added with the “Add Image” functionality on the edit screen. The attribute would be rel=”lightbox[post id]” What function would I filter to accomplish this most effectively? 2 Answers 2 image_send_to_editor function insert_img_rel_attrib( $html, $id, … Read more