Advanced WordPress query using formula

I am building a custom WordPress website using the Isotope masonry jquery plugin. Posts will be displayed visually using their featured images.

I can set all of this up, but I need a programmer to write an advanced WP query to load the posts using a specific algorithm/formula.

The main query will pull posts from a custom post type (CPT) called "Employees."

We want to partially randomize the Employee posts so that more senior employees tend to show higher. There are four tiers of employees, and each employee post will be assigned a Tier Number (1 to 4, with 4 being senior level) via a custom field.

Each time the employee page is generated, each post from this CPT should be assigned a Random Number (1 to 5) which will be multiplied by its pre-defined Tier Number (1 to 4). Then, using the product of "Tier x Random," the posts should be displayed in descending order.

For example, a Tier 2 employee with a random 4 would equal "8". A Tier 4 employee with a random 3 would equal "12". Posts should then be assembled in descending order based on that final number. It will be different each time you view the page because the generated random numbers will be different.

Adding another level of complexity, posts from another CPT (let's call it "fillers") should also be pulled into this loop and be interspersed randomly, approximately 1 post from the Fillers CPT for every 6 posts from the Employees CPT. Perhaps you use a counter that says "after every 6th post, display a post from "Fillers"?"

I can provide you with access to a WordPress setup that has all the CPTs loaded in with sample posts and the relevant custom fields. I will also have the masonry script set up as well. I can give you FTP access as well. What I need you to do is write the queries to pull the posts in using the above algorithm/formula.

Skills: PHP, WordPress

See more: wordpress programmer advanced, what is time complexity of an algorithm, what is time complexity in c, what is time complexity, what is complexity of an algorithm, what is complexity in algorithm, what is algorithm complexity, time complexity of an algorithm, time complexity of algorithm, time complexity in algorithm, time complexity formula, time complexity algorithm, need a programmer in wordpress, give an example of an algorithm, formula it, custom website using wordpress, complexity of an algorithm, complexity of algorithm example, complexity of algorithm, complexity formula, complexity example, algorithm complexity, algorithm and complexity, advanced algorithm, advanced wordpress

About the Employer:
( 0 reviews ) United States

Project ID: #5754682

33 freelancers are bidding on average $571 for this job


*******Kindly initiate CHAT to know that I am not a spammer or this is not a canned message ------------------------------------------ Hello Here are some basic and necessary things that we are going to provi More

$618 USD in 15 days
(600 Reviews)

Hi, My name is Marat, I am CEO of WEB4PRO company located in Ukraine - We offer the services of web development on WordPress. I am interested in your project and able to perform tasks with differ More

$721 USD in 10 days
(295 Reviews)

Kindly ignore the bid amount & time-line, it is just a placeholder, as we still need to receive more detailed requirements from you to finalize it. -------- Dear Sir, I have read your Project Description and plea More

$773 USD in 20 days
(48 Reviews)

1. Donation Site We already designed and developed a wordpress based site for donations in which we implemented paypal and paypal pro to take the payments from credit cards with a complete registration of donating per More

$695 USD in 15 days
(93 Reviews)

Hey there! Certified PHP/HTML/Wordpress expert here with 6+ years of exp. I'm in Top 5 among 100,00000+ freelancers in in these categories. You can verify the same here : More

$721 USD in 12 days
(280 Reviews)

Hello, sir I'm interested with your project. I have good skill and my place is 8th in freelancer. I'll do it for you. I can do it well more than you could guess. :) If you give me this p More

$773 USD in 10 days
(130 Reviews)

**********************.. YOUR SEARCH ENDS HERE .. ********************** GET IT DONE RIGHT THE FIRST TIME! My clients are first and communication is very important. Hello Sir/Ma'am, yes indeed I read descriptions howev More

$1030 USD in 10 days
(38 Reviews)

Dear Sir, We have 7 years experience on Wordpress, HTML, CSS, JavaScript, PHP, MySQL, etc. We have gone through all of the requirements for your project. Very familiar with theme customization (Genesis, Thesis, Elegan More

$473 USD in 10 days
(217 Reviews)

Hi, I have read your post and understood your requirement. I have good experience in handling Wordpress /Magento/Joomla/Drupal/ HTML5/CSS3/PHP/ Yii framework/Javascript/MySQL/ Kindly go through my works to c More

$1030 USD in 40 days
(52 Reviews)

We are interested to write the query as per your requirements. We are well versed in wordpress and have completed more than 1000 projects here. We have some doubts and would like to discuss them once you initiate conve More

$250 USD in 10 days
(651 Reviews)

Hi, We are experienced wordpress professionals who are mainly working on wordpress theme customizations and plugins development around 4 years.With wordpress and custom php we are able to do any type of work in a li More

$515 USD in 10 days
(145 Reviews)

i am skilled in wordpress, i can help you on this. i am skilled in wordpress, i can help you on this. i am skilled in wordpress, i can help you on this.

$526 USD in 3 days
(215 Reviews)

Custom sites, Wordpress Sites, All programming languages and database types. Sites include administrative back end systems. Would love to help you, contact me so we can move forward.

$526 USD in 10 days
(29 Reviews)

Hello, My name is Faizan and I am Wordpress Developer. I can write a query to perform this algorithm. We will play with Wordpress Hooks and will hook our function with algorithm to wp hooks. The function will then s More

$250 USD in 2 days
(23 Reviews)

Hello Sir. I have carefully gone through your requirements and have understood the algorithm you want to integrate into the main Wordpress Post query for your CPTs. Everything is clear and I have a suggestion reg More

$412 USD in 7 days
(115 Reviews)

Hi, I have reviewed your project description and I am confident I can complete your Wordpress website with all the customization you want to have integrated in the back-end. I am an experienced Wordpress developer fo More

$679 USD in 11 days
(28 Reviews)

Hello Sir, We have gone through the details you have provided and would be pleased to work on this with you to deliver the results that you have expected and We are sure you will not be disappointed if you give us More

$422 USD in 12 days
(43 Reviews)

Hello, You will be able to directly communicate with our technical expert. Please find below URLs of recent Wordpress projects developed by our technical experts: smartc More

$250 USD in 10 days
(68 Reviews)

Hello! I am wordpress pro, have good wordpress experience, working with wordpress for more than 5 years. From my wordpress responsive projects: http://pro More

$555 USD in 10 days
(135 Reviews)

Hello LBSweb, I am an expert in wordpress CMS/PHP/CSS/HTML/Jquery.I read through your requirements and i can be of your assistance in this regard.I am online right now and ready to chat.Do let me know and i can give yo More

$567 USD in 8 days
(40 Reviews)