• Hello. I’m rather new to wordpress, but not completely. I did use blogs in this website
    https://www.bandwagontheseries.com
    that is about the extent of my knowledge on adding it to an existing site.

    Here is my question.
    I’m about to design a site for a customer that is making an Online Comic. She would like to be able to add comics twice a week, herself. So, i figured that wordpress would be the best option. Thats normal. The question I have is this:

    She wants it set up so, if say october ends, she wants to basically wipe out the issues, and start a new month. But also have links on the side, to go to previous months, or technically issues.

    I guess I want to know if there is a way to set up the blog so that it goes by month. The one I have the bandwagon site, i believe shows me 5 blogs, before it kicks them off and starts a new one.

    Also, how do I make the links on the side for previous months?

    thank you so much!

Viewing 8 replies - 31 through 38 (of 38 total)
  • put it at the top. If it’s some file not found error, that’s because you must put WordPress in the same directory. If not, correct the path to the wp-blog-header.php file.

    As to whether you need the <?php part, that depends on the rest of your code. PHP code is placed between the <?php and ?> tags. Everything outside that is HTML.

    The PHP tutorial has an example.
    https://www.php.net/manual/en/tutorial.firstpage.php

    Thread Starter tothestage81

    (@tothestage81)

    OK at the moment im getting this error

    Fatal error: Cannot redeclare wp_get_archives() (previously declared in /home3/xxxxxx/public_html/episodes.php:213) in /home3/xxxxxx/public_html/ep/wp-includes/general-template.php on line 1048

    I added the index.php code to the top, i changed the theme thing from true to false, and changed the directory to be correct.

    This is my code at the moment
    https://pastebin.com/vxYeTWke

    Like the error message says, the problem is on line 213.

    That’s not the way you use a function. Using the ‘function’ keyword in PHP DECLARES a function, and you can’t do it twice.

    I’ll let you fix this with those hints, because as someone developing sites for customers, you really should be able to debug your own code with the help of the error message, and this is very basic PHP.

    Thread Starter tothestage81

    (@tothestage81)

    ok…. you must not remember what it’s like to be a beginner at something… i’m not use to using php…. I honestly havnt used it all that much up to this point… and im teaching myself. When I was in classes, we used html only…. so.. ??

    I learn stuff by myself all the time. I’ve found that the best way is to try and find out for myself, rather than getting a free answer. Btw, saying stuff like “ok…. you must not remember what it’s like to be a beginner at something” isn’t very nice, and it’s the same attitude that irritated Shirazdrum.

    You picked up a PHP job, thus you should know PHP. It’s ok to learn it on the job, but to expect free step by step instructions and debugging help when you’re not even using WordPress the usual way is unreasonable.

    So far, it doesn’t seem like you’ve bothered to read up on PHP. Here’s a link to the part you need to know, but really, you should know how to find these resources.
    https://www.php.net/manual/en/language.functions.php

    Thread Starter tothestage81

    (@tothestage81)

    The issue is that I was giving a VERY short time to do this, the people this is for, picked me, I didn’t exactly pick the job, but I need the job… because I need the money. I have a full time job, and it isn’t design, i dont have a lot of free time to google things. They didn’t give me the information I needed to start the site, until the middle of this month, and it needs to be done in 3 days… I’m not trying to get free advice, but im stuck… so, Im sorry if Im coming off a little stressed. I don’t mean to, but it seems like you guys are giving me a hard time about my knowledge, which doesn’t exactly make me feel that great either….

    thank you for the link.

    Well you did start off by saying that you know what you’re doing and just wasn’t too familiar with WordPress. Plus you were trying to create your own PHP page, so I assumed you do have some coding knowledge. Also, I’m not giving you a hard time about your knowledge, but rather about what seems to be a lack of motivation on your part to solve your own problems.

    After providing function names and even full links to the codex pages, you didn’t seem to search very hard for the function. Using the ‘find’ feature in any decent text editor would have brought it up in seconds.

    After I gave you the hint on function declarations, you didn’t seem to have even tried looking for the necessary information. I found the PHP manual page in less than a minute, so googling doesn’t even take that long.

    I’m going to give you the benefit of the doubt here and assume that you’re really so short on cash that you need to accept a job which your current skills cannot handle.

    What’s causing the error is the whole chunk of code from lines 213 to 232. You just copied the function declaration there. What you’re supposed to do is call the function.

    So line 213 should read <td width="311" align="center" valign="top"><?php function wp_get_archives()

    And delete the code from lines 214 to 232.

    Anyway, I’m sorry but I’m not going to teach you the basics of PHP through this forum. There are plenty of other sites for that. All the best with your site.

    Thread Starter tothestage81

    (@tothestage81)

    thank you.

    And i’m sorry to be a pain.

Viewing 8 replies - 31 through 38 (of 38 total)
  • The topic ‘Please help! External site by month?’ is closed to new replies.