ikelove
Forum Replies Created
-
Thanks! I will try it out. Why would it happen all of a sudden? I haven’t touched my WordPress configuration in YEARS.
Forum: Fixing WordPress
In reply to: How Do I Display A Specific Category of My Blog on a Separate Page?How would I create that secondary loop?
Great! At least that worked. Thanks!
Now, WTH is going on with my functions.php file??? Believe me when I say when I did nothing else to any other file, I really did nothing else. I don’t know why I’m getting this parse error.You mean on my ftp program I do this? Because I can’t even access the other themes, I don’t even know what to rename the directory of the theme to. Please can you briefly outline the steps.
Also, now because of this error, I can’t even log out or do anything else.This totally sucks.
What’s more is that with this error, I can’t even get into my wp-admin page for my site, or do anything else for that matter….my freaking goodness.
An added problem is that now with this error, it won’t even let me go to another part of the back-end to switch to another theme.
Nope, doesn’t work. I still get the same error. Funny how everything changed when I added that code and then removed it. I was even given a link to the most updated function.php code here: https://themes.svn.www.ads-software.com/inove/3.0.5/functions.php and I still get that same line of error which is weird because I touched no other .php file.
Nope, I’m still getting the same error. I didn’t touch anything else so it’s weird how I started getting the error all of a sudden. Maybe something in line 10 is calling “add_action”?
If I switch to the default theme, would I lose all the changes made to the inove theme?
It’s very strange how all this happened. All was good until I simply went on functions.php and added this line of code on the top right below “class inoveOptions (” in order to get my default page to show only one category of posts and that’s when I started getting the error. I removed the code and I still got the same error.
function my_home_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', '1' ); } } add_action( 'pre_get_posts', 'my_home_category' );
I did what you said last night and I wound up getting this error:
Parse error: syntax error, unexpected ‘add_action’ (T_STRING), expecting function (T_FUNCTION) in /home1/ikelove/public_html/wp-content/themes/inove/functions.php on line 10
I went and removed the code you told me to add to get it back to normal and I’m STILL getting the same error, even after I went to a backed up functions.php file and cut and pasted the code.
[ Moderator note: please use pastebin.com for posting large blocks of code. ]
Hey, thanks for your generosity in responding.
In any case, Good Lord, re-installing inove was the last thing I wanted to do. I had saved the files some years back in case something like this happened, so I wonder why when I cut and pasted the code from the original I saved that I’m still getting this error.I found the add_action function at your suggestion but everything there looks fine, do you see anything that’s missing?
// register functions add_action('admin_menu', array('iNoveOptions', 'add')); /** l10n */ function theme_init(){ load_theme_textdomain('inove', get_template_directory() . '/languages'); } add_action ('init', 'theme_init');
Hey,
Thanks very much for ALL your help. Sorry for the added question, but where do I stick this code? Do I just put it on the bottom of the page?
Thanks again!
Actually, from inquiring about it, it seems to be a common issue. Someone kindly gave me a line of code and the issue has been resolved. Now if someone can only answer the question of the current thread for me. ??
Hey man, thanks a lot, it totally worked!
How please, I’m having problems with getting my index.php page (my default page) to show only ONE category (the uncategorized posts) rather than every single category. How do I get it to show only one category? Would you know?
Thanks again!
Thanks, you said “for example,” so I’m a bit confused. Is this the EXACT line of code I use to get rid of the error?
Thanks again!