WordPress.org

Ready to get started?Download WordPress

Forums

How to do a miniblog... (24 posts)

  1. carthik
    Member
    Posted 9 years ago #

    Excellent, good snake! Thanks for the HowTo. Could be at the wiki too :)

  2. Johnnie
    Member
    Posted 9 years ago #

    This is such a stupid question. But what is this my-hacks.php thing? I don't know a lot about .php or what this does. And I don't know how to go about getting it on or starting it. I clicked the check box in the options area, and then went to the templates and tried to view it, but it says it doesn't exist. I don't have one. Errk! Where do I get one, who do I have to sleep with around here for one?

  3. goodsnake
    Member
    Posted 9 years ago #

    go to my site, use the contact form to send me your email address and I will email you a my-hacks.php file that you can just upload to your site and it will work for you.

  4. carthik
    Member
    Posted 9 years ago #

  5. Johnnie
    Member
    Posted 9 years ago #

    Actually, I just found that in the wiki. I'm a lil slow today. But thank you. :)
    I shall be attempting this...

  6. midwinter
    Member
    Posted 9 years ago #

    Pardon my ignorance, but what does this mean:
    "Insert this line just after the start of the loop in index.php"
    What is "the loop"?
    Cheers
    Scott

  7. Johnnie
    Member
    Posted 9 years ago #

    I think this explains what the loop is: http://wiki.wordpress.org/TheLoop
    And I found all by myself!
    *all proud of me self :)

  8. midwinter
    Member
    Posted 9 years ago #

    Johnnie: I'm getting that, too.

  9. OperaManiac
    Member
    Posted 9 years ago #

    u guys enabled my-hacks.php from the backend?

  10. carthik
    Member
    Posted 9 years ago #

    Sushubh means to say that you have to enable the my-hacks.php support in Options->Miscellaneous for functions in that file to be used/considered.

  11. midwinter
    Member
    Posted 9 years ago #

    Yup. Enabled. No blank space in the my-hacks. Here's the error:
    Fatal error: Call to undefined function: the_category_ids() in /home/scott/public_html/scott/wp/my-hacks.php on line 3

  12. carthik
    Member
    Posted 9 years ago #

    You might not have enabled the plugin.
    Try to find out which file you newly added/modified has the function the_category_ids() and see if it is enabled. See if you have the file that contains that function first.

  13. Johnnie
    Member
    Posted 9 years ago #

    I enabled (activated) the plugin' from kitten. And the legacy my-hacks.php is checked in the options area. But still an error. I get the mini blog showing up, but the main blog area gives me that error.

  14. midwinter
    Member
    Posted 9 years ago #

    Kitten says that there's something in that function that calls for code the original poster didn't provide. Also says that the next version of show_categories plugin (due, perhaps, tomorrow) will feature the miniblog....

  15. Johnnie
    Member
    Posted 9 years ago #

    Ok, I have no idea what that means. I did what I was suppose to I think. I hope. I can't see anything I left out.

  16. charle97
    Member
    Posted 9 years ago #

    the_category_IDs() function needs to be defined. goodsnake failed to include the_category_IDs() function definition.

  17. midwinter
    Member
    Posted 9 years ago #

    Harumph.

  18. Johnnie
    Member
    Posted 9 years ago #

    And umm how do I define them? I really don't know anything.

  19. goodsnake
    Member
    Posted 9 years ago #

    I will be happy to look at the code you are using if you will tell me where you have it... it is hard to troubleshoot without the code.
    I have pasted my menu.php file here http://paste.uni.cc/1228
    and my index.php file here if you want to look at the code. http://paste.uni.cc/1229
    the my-hacks.php can be copied here http://paste.uni.cc/1230 , please use this since I f#$%ed up and forgot the first few lines of code above.

  20. Johnnie
    Member
    Posted 9 years ago #

    I did exactly that. I made sure I changed the numer 25 to the number of my miniblog in both the my-hacks.php and the code for the index page. I made sure to double and triple check what I did. But I still get the errors. And I don't know what it means to define the the_category_IDs() function. Or how to do that if it isn't already done.

  21. Johnnie
    Member
    Posted 9 years ago #

    This is what my-hacks.php looks like: http://paste.uni.cc/1231
    And this is the miniblog code on my index page in the sidebar: http://paste.uni.cc/1232

  22. Johnnie
    Member
    Posted 9 years ago #

    Ok, thanks for helping goodsnake, but I couldn't get the my-hacks.php thing to work at all. But Kitten released a new version of the plugin allowing mini blogs. So I'm going to use that. Since my-hacks.php and me were just not meant to be. Thanks again.

  23. Anonymous
    Unregistered
    Posted 9 years ago #

    show_category_posts function is not defined... am i missing something?

  24. Sumaira
    Member
    Posted 9 years ago #

    Im trying to use the above code to create a miniblog on my site also, and when I was done, in the main area....my mini blog showed up as a post and where the mini blog was supposed to be in showed up saying there are no posts that match your criteria.....
    Suggestions?
    (Yes both places refelct the ID of my "miniblog".)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.