• Resolved Boo_77

    (@boo_77)


    I’m not sure what it is I am trying to do.

    If you could just visit this site very quickly I’ll tell you what I want to do that is the same.

    https://www.dooce.com/

    See how she has a main site where she does her daily writing or posting, but then also has three other “buttons” up the top for daily style, daily chuck and daily photo?? And if you go to each of those pages then you can scroll through the other photo’s and such in the daily sections?

    I want to do that but I don’t know if I do that by creating a subdomain or a subfolder? Do you know which I would be best doing and if yes, can you please lead me in the right direction so I can learn how to do that?

    Or can you tell me the difference between the two?? What would you use a subdomain for and what would you use a subfolder for??

    Which has she used?

    Thanks heaps.

    Boo

    https://discoverboo.com

Viewing 5 replies - 46 through 50 (of 50 total)
  • Thread Starter Boo_77

    (@boo_77)

    I put that code in but I don’t think it worked. It was meant to remove comments form from individual photo’s??

    This is where I put it.

    <?php
    $cat_obj = $wp_query->get_queried_object();
    if( $cat_obj->parent ) :
    ?>
    <?php else : ?>
    <?php comments_template(); ?>
    <?php endif; ?>
    
    	<?php endwhile; else: ?>

    Nothing we’ve done would mess with the blog stats would it??

    On the ping bcaks, when you are editing or writing a post, there’s an option t the bottom called “comments & pings” uncheck “allow pings”

    instead of the code I posted last time try this:

    <?php if($post->post_parent) { ?>
    <p>child page</p>
    <?php } else { ?>
    <?php comments_template(); ?>
    <?php };?>

    I might be misunderstanding exactly what your structure is. I installed your theme locally and can’t get it to behave the way yours is.

    Can you go through all the steps you take when making a post for your “photo gallery” section so i can try and duplicate it?

    What i can’t get is the first post to make the thumbnails into links leading to the individual picture pages. That’s what i need to know to try and sort out the rest.

    Thread Starter Boo_77

    (@boo_77)

    That worked! I took out the <p>child page</p> bit because it was showing up on the page. I left the <p></> bits, does that matter??

    So all I do for making the photo pages is…

    1) New Post
    2) insert photo’s.

    With this step. I used to use the browser uploader but recently started using the other one where I can select multiple files to upload.

    3) It uploads them and I can click “show” to rename and what not. I don’t click “insert in to post” until I have changed all of them.

    4) “save all changes”

    When I do that a drop down menu appears. Gallery Settings.

    Its for inserting gallery in to the post, instead of individual photo’s.

    I change the number of columns to 2 or three, order by name. And attachment.

    It puts the gallery in as one big block.

    Change the catagory, publish.

    Thats it. I think thats what you wanted to know. LOL. If not I just spent a very long time resizing photo’s so I could just do it and write down what I did.

    Hey you know, I am not sure you need this instruction anymore!? That code did work for what we wanted it to do, unless there was something I have missed.

    Night. Have a good day.

    Awesome!

    I have never dealt with parent -> child queries in WP before so i’m glad the second try worked.

    you’re right, I just left the <p>child page</p> line in there so that it would physically show up something if in fact the page was a child. Removing it is perfectly fine.

    Thanks for going through the steps, I gave it a go this morning but couldn’t get it working the way you do. Of course, since the little code worked it’s all fluff now ??

    Take care.

    Thread Starter Boo_77

    (@boo_77)

    Thank you, Thank you Thank you!

    I really appreciate it.

Viewing 5 replies - 46 through 50 (of 50 total)
  • The topic ‘Can you help me??’ is closed to new replies.