Find Jobs
Hire Freelancers

Need help with wordpress plugin setup

$30-250 USD

Cancelled
Posted over 9 years ago

$30-250 USD

Paid on delivery
I have created a wordpress plugin and am having a small issue I need assistance with to start. The plugin uses the Fluent Options Framework to create a custom post type and meta boxes inside the post type. The plugin outputs content using a shortcode eg [myshortcode id="221"] I have everything setup, but what I am struggling with is getting the meta options on the front end. It works inside the loop, but I actually need to get the meta values outside the loop. This is because I want to enqueue scripts and styles based on certain meta settings. What i essentially need is to save the ID of the custom post to the main plugin class. Then I can access the options using get_post_meta()
Project ID: 6678949

About the project

17 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
17 freelancers are bidding on average $183 USD for this job
User Avatar
Hi I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction so lets start Thanks
$190 USD in 7 days
4.9 (451 reviews)
8.2
8.2
User Avatar
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 !! Looking forward to hear from you soon - GOD Bless You.
$252 USD in 3 days
4.9 (185 reviews)
6.8
6.8
User Avatar
Hello I can achieve the results that you are asking for. I want to discuss this project in detail. So may i know what's the right time to talk you about this project. Thanks
$80 USD in 4 days
4.8 (51 reviews)
6.0
6.0
User Avatar
Hello! Just to explain. You are getting bids this high mainly for two reasons: 1) You are asking someone to things that are not necessary for resolving your query, that being to have to read documentation on something they do not normally use neither for themselves, not for their clients (here fall pretty much 85% of us here), and 2) You explained your problem and what you want to do in a very "obfuscated" way. FOr example you are talking about ID of a custom post type, instead of ID of the post of this post_type, which is what the "id" parameter of the example shortcode represents. And also saying "it works in The Loop but not outside The Loop" is not correct either. It's not The Loop that makes it work it's the_content(), which is the only hook where Wodrpress naturally evaluates shortcodes, meaning not being forced to do so. So in summary - you want the_head() to enqueue content styles/javascript based on postmeta values of some post, basically. Now would you please define which post do you want the_head() hooked function need to look for so to decide what to enqueue and what not? This for all cases of page content - home,single,archive and 404. The framework has no role in that at all, which is the reason for my comment (1) above. Kind Regards, Dobri
$45 USD in 0 day
4.9 (163 reviews)
6.0
6.0
User Avatar
you can get post meta value easily using $meta_values = get_post_meta( $post_id, $key, $single ); i can help you to enqueue scripts and styles based on certain meta settings. Thank you
$166 USD in 3 days
4.5 (2 reviews)
2.9
2.9

About the client

Flag of SOUTH AFRICA
South Africa
0.0
0
Member since Jul 9, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.