hufferja
Forum Replies Created
-
ACF is being used to add the PDF link to the post so users can download it. that’s all this post has associated with it. The code grabs a default image that is used for all posts associated with this category.
Below are the links for the literature1.php template and literature2.php template associated with the category id’s of the color pdf and info pdf pages.
Below is a link of what the category.php template looks like that contains the WP_Query. I’ve highlighted the 2 else if statements that correlate to the id’s used with the problems. I can screenshot those pages to if you would like.
What information would you like to see?
Yes, the content of the statements that relate to the problem are correct as all of the other posts related to the category id are on the page, only the new posts aren’t present.
the WP_Query splits into a bunch of if statements to specific categories, then some else if statements for specific categories to then redirect them or send them to different templates. This site was coded over 13 years ago and I didn’t code it. Just managing it until we hopefully upgrade it.
changing the variable to be unique in the mobile version editing the desktop template commenting out the get_categories() assignment and changing the related foreach loop in the desktop menu worked. Both menu’s are working properly now. I thought that might have something to do with it since it was reusing the same variable over and over again. And I originally tried that but didn’t comment out the get_categories() assignment in the desktop menu. Thanks for the help. I really appreciate you helping me with this.
I wasn’t the original developer of this code, we took it over in order to build the responsive side of the original website. I also wasn’t the developer that built the responsive side just manage it now.
Below are the links to the pastebins of the code for each templated menu.Secondary Menu tablet/desktop
https://pastebin.com/bKXcjbWrSecondary Menu Mobile
https://pastebin.com/EddJ3ATjAfter going to my host to contact support this message comes up. “We are experiencing temporary issues with MySQL service “pdx1-mysql-a7-6″. Our operations team is actively working on restoring services.” PHP version is 7.4 and hasn’t changed. So this mySQL problem could be the causing this issue?
Forum: Fixing WordPress
In reply to: Warning: preg_replace(): The /e modifier is no longer supported,Downloaded a new version of WordPress 5.5. Replaced my install files from that. Everything looks fine now. Had an issue and needed to change my version.php file to ensure WordPress and DB were using the right version. No more warnings and able to log in. Thanks for the help.
Forum: Fixing WordPress
In reply to: Warning: preg_replace(): The /e modifier is no longer supported,Renamed the plugins folder to plugins.hold. Tried logging in to sites wp-admin and still seeing this warning:
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /nfs/c05/h01/mnt/20860/domains/studioconover.com/html/wp-includes/class-wp-recovery-mode-key-service.php on line 2
Renamed the active theme folder to force the default theme to activate and all I saw was a blank screen with the above warning.