• Here I go again with wuestions lol.

    So this was one of thsoe things that I thought would be pretty damn easy to do. but apparently not.

    https://www.LetsKillSomeTime.com

    On the top of the main page, under the header I want to add text/box that says “Image Section” , That I know how to do, Just add a menu.

    But when Someone click on that, I want them to be taken to a page which looks like that main page with the same ammounts of posts per page etc but this time its only images. So The main pages has 8 new videos per day. And when you click on “images section” you go to a page with 8 new images per day.

    How do I do this? I have tried, and looked around but no luck. I thought it was going to be super easy. But no, and I have no idea why.

    Take care

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter TheSweede

    (@thesweede)

    so I copy that exactly and change the “23” to “275” which apparently was the photo category id..

    And then open index.php in the template folder that Im using through ftp and add that below everything else?

    so I copy that exactly and change the “23” to “275” which apparently was the photo category id..

    Yes

    And then open index.php in the template folder that Im using through ftp and add that below everything else?

    No! It must come before the start of the main Loop in that template file.

    Thread Starter TheSweede

    (@thesweede)

    https://i52.tinypic.com/29cuqgl.jpg

    brown line seems to be where the loop starts, so on the green line is ok? after the “}” but befure the “/”

    or ist just above Everything ok?

    I tried that, and when I saved it the php file ended up looking Completly different, wtf

    now it looks like

    https://i56.tinypic.com/o5940l.jpg

    I made a copy before editing though which I added back but still looks like that

    edit* back to normal when I restarted the ftp program

    after I put it where I did the green line the site stops working lol. thank god I made that copy, so I have to wait until you till me where to put the code haha =)

    tried above everything and the site didnt craash but didnt do any difference

    https://i54.tinypic.com/2we9oqp.jpg

    Thread Starter TheSweede

    (@thesweede)

    (too late to edit)
    tried above everything and the site didnt craash but didnt do any anything

    https://i54.tinypic.com/2we9oqp.jpg

    Thread Starter TheSweede

    (@thesweede)

    you left a noob hangi’n ??

    brown line seems to be where the loop starts

    Yes but looking at that code, there’s already a custom query being created higher up that is specifically querying custom post types.

    Thread Starter TheSweede

    (@thesweede)

    And what does that mean? I cant add the line I have to to make the image section work?

    Right now, yes. That template file (and theme) would need some careful examination before implementing any additional custom queries.

    Thread Starter TheSweede

    (@thesweede)

    alright =(. WordPress should add a “post directly into category” option.
    The fact that its such a pain in the ass (at least for beginners I assume) to just add a new section with posts going there right away is random as hell imo. Should just be a normal option. Do you think wordpress would liten to someoe sending them “tips” lol.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Add image section to my website.’ is closed to new replies.