Fix and refactor function to accurately input content


I have written a function that inputs content (title, timestamp, comment count, widgets, sections etc) into pages depending on the page.

My code is redundant, but I don't understand PHP well enough to make it not as repetitive. I also am running into a few errors where incorrect info is being added to the page. I believe I am passing an incorrect ID or I should be passing the ID in a different way or maybe this is because I am outside the loop? I am not sure...

The end goal is to have this function reduced in size (cleaned up with not as many if statements and not as many attempts to get the ID) and for it to accurately check and input the content I am asking it to input (home page, archive page, category page, taxonomy page, single page, regular page, search page, 404 page etc... you get the idea)

I'll walk you through my function for you to understand what is happening - but it's pretty straightforward. Functions are placed in my pages and these functions are only called if the page has checked the section to show. See screenshots for more info.

Skills: HTML5, PHP, WordPress

See more: fix my home page, fix my home, content writing for travel websites from home, you will be translating document content accurately into natural, bad content different without www fix, magento home page display product details single, change home page category magento, home improvement category, fix number images virtuemart category view, content spinning function, loader as2 fix size, fix size picture, fix size frontpage joomla, actionscript fix size swf, joomla fix size post frontpage, fix size picture size picture, gridlayout swing fix size, fix size photos, fix size web page, archive page specific category wordpress, problem design masterpage aspnet fix size, fix size pictures, fix size swf loaded flash, input proper utf indicate encoding fix, fix size swf

Project ID: #12230628

10 freelancers are bidding on average $38 for this job


Thanks for inviting us, We would like to check the code if you provide us the credentials. can you come over a CHAT to have a discussion regarding the issue in detail? Regards, AG Technical Consultant Infoway L More

$33 USD in 1 day
(399 Reviews)

Hello Tad, Good Day! I am a full stack PHP developer with 10 years experience, I am very much comfortable to fix the issue and refactor function to accurately input content. I want to work on hourly basis for thi More

$30 USD in 2 days
(111 Reviews)

SATISFACTION GUARANTEED This is Neha from SDLC Labs (IT Outsourcing Company India). SDLC is having specialization in WordPress|PHP and have developed lots of sites (1000+sites) in the past to connect clients and More

$105 USD in 1 day
(81 Reviews)

Dear Employer, Thanks for inviting me : I have gone through your requirement and will be glad to work for you. Please take a look of some of the website done by me: =========================================== More

$38 USD in 1 day
(333 Reviews)

Dear Sir. We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself - Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !! Lo More

$45 USD in 1 day
(162 Reviews)

A proposal has not yet been provided

$35 USD in 1 day
(36 Reviews)

How are you? Dear sir. I read the job description with interest. I now know your issue of job exactly. I will complete this job by correcting bootostrap and css perfectly. I can complete this for 1d. I ha More

$25 USD in 1 day
(9 Reviews)

Hello, Thanks for the opportunity. I have gone through the details of your project and we find it well within our capabilities. I would like to tell you that I have a very strong experience of more than 3+ years More

$15 USD in 1 day
(3 Reviews)

hello dear i have a great skills in, php framewroks and wp cms and its customization and wp plugin customization, designing of sites using bootstrap js etc followings are few urls which i hade made and run s More

$25 USD in 1 day
(2 Reviews)
$20 USD in 3 days
(1 Review)

A proposal has not yet been provided

$20 USD in 1 day
(0 Reviews)

We are professional web designer and development company. We have done critical work in php , we would like to do your job .

$27 USD in 2 days
(0 Reviews)