empfx
Forum Replies Created
-
Forum: Themes and Templates
In reply to: If/else driving me crazy plz helpI need more coffee, there was a typo, it works perfectly now. Huge thanks alchymyth!
Forum: Themes and Templates
In reply to: If/else driving me crazy plz helpAgain sincerely thanks for the quick response but for some reason on my end it persists in showing only the header-subpages.php (4th in the list) completely ignoring the other two pages. I am baffled.
Forum: Themes and Templates
In reply to: If/else driving me crazy plz helpThanks for the quick response. Sadly when I use is_page it only shows the other is_page in the list. (subpages.php) Only 1 or the other, not both.
Forum: Fixing WordPress
In reply to: Sliders won't pull from Categories with space in a name please helpI think I have narrowed it down to adding a function to handle the special characters in a category name, such as white space, “&”, “*” etc.
but still getting errors with category names with more than one word.
Anyone?$mx_categories_obj = get_categories('hide_empty=0'); $mx_categories = array(); foreach ($mx_categories_obj as $mx_cat) { $mx_categories[$mx_cat->cat_ID] = $mx_cat->cat_name; }
Forum: Fixing WordPress
In reply to: Sliders won't pull from Categories with space in a name please helpIs there anyway with my above code that someone could see me using the category nicename to pull from? My syntax is not great if anyone could lend a helping eye.
Forum: Fixing WordPress
In reply to: Static posts page not showing page title?finally, wp_list_pages(include= worked for me if it helps anyone.
Forum: Fixing WordPress
In reply to: Static posts page not showing page title?No way to show the page title instead of the post title on a static posts page? Anyone who can help?
Forum: Fixing WordPress
In reply to: Static posts page not showing page title?sorry, try: this code
Forum: Fixing WordPress
In reply to: If / else need helpOh how this has boggled me to no end. Your amazing, thank you – works perfectly. I had another revision I was about to post and boy was I way off. I’ve struggled with this for days. Thanks for taking the time out to help me see the light, lol.
Forum: Fixing WordPress
In reply to: If / else need helpForum: Fixing WordPress
In reply to: If / else need helpoops, here is the code.
Forum: Fixing WordPress
In reply to: If / else need helpSorry, very new to wp and php and sadly the forums since I did not read the rules. – sincere apologies. I did my best to make sense of conditional tags but am clearly having troubles.
I am trying to show the post title on single pages and the category title on category pages across the top of the page. I don’t know why I said “all other pages” I was trying to make it simple I guess, hehe.
I did’nt know about the negation operator ! but my syntax must be horrible because it keeps throwing an unexpected end error at me.