Find Jobs
Hire Freelancers

WordPress PHP shortcodes

$10-30 USD

Completed
Posted almost 6 years ago

$10-30 USD

Paid on delivery
Hi! I need to modify 2 shortcodes to meet my requirements. The project budget is 15USD, so please don't bid more than that because you won't be considered. Milestone will be 5, I will need to check both codes working on my site and then I will release all the money, after checking all is working as expected. If you agree with these conditions, you can bid. Thanks! SHORTCODE 1: This shortcode displays on frontend the current role of the logged-in user. I need some modification to also be able to display other user roles, like first_name or last_name or any other custom profile field via metadata. The actual shortcode is [role] and I want something like this: [user meta_key="role"] [user meta_key="first_name"] [user meta_key="subarea"] (A custom user profile field) So any combination is possible because it will read the user fields. function get_current_logedin_user_role( $attr ) {global $wp_roles; extract( shortcode_atts( array( 'user' => null, ), $attr ) ); $user = $user ? new WP_User( $user ) : wp_get_current_user(); $list = array(); foreach( $user->roles as $role ) { $list[$role] = $wp_roles->roles[$role]['name']; } return implode( $list, ', ' );} add_shortcode( 'role', 'get_current_logedin_user_role' ); ------------------------------ SHORTCODE 2: I need this code to handle the following redirections: If user role is backend, then redirect to /alta/ If user role is subscriber or editor, then redirect to /bienvenida/ Any other role redirect to /perfil/ add_filter( 'wp_nav_menu_items', 'wti_loginout_menu_link', 10, 2 ); function wti_loginout_menu_link( $items, $args ) { if ($args->theme_location == 'primary-menu') { if (is_user_logged_in()) { $items .= '<li id="menu-item-1437"><a href="'. wp_logout_url() .'">'. __("Cerrar sesión") .'</a></li>'; } else { $items .= '<li id="menu-item-1437"><a href="'. wp_login_url(get_permalink()) .'">'. __("Acceder") .'</a></li>'; }}return $items;}If logout, the go to X URL
Project ID: 17298162

About the project

19 proposals
Remote project
Active 6 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
Awarded to:
User Avatar
$15 USD in 2 days
5.0 (29 reviews)
4.9
4.9
19 freelancers are bidding on average $34 USD for this job
User Avatar
hello sir i am expert in wordpress shortcode develop i am able to do this work you will satisfy with my work i can do this work asap this simple work for me thank you
$30 USD in 1 day
4.9 (258 reviews)
7.2
7.2
User Avatar
Hi, We have gone through your project description and have understood that you are struggling on a couple of things. We are experts in designing and developing WordPress website and their is no work in WordPress that we do not excel in. Once you award us the project we will need the access to your website. Our turn around time is 24 hrs and in case of changes 2-3 working hrs. Our delivery is on time and 100% correct. Please check our profile for Portfolio and Short Pay Guarantee. Once you provide us with the WordPress access we will do the changes as provided in the project description and will upload it in a test folder for you to see the changes. Based on the feedback we will do the changes as asked for. We offer unlimited revisions. Once all the changes have been approved we will transfer all files to you and if required upload it & make it live In case of any other changes you required we will be happy to do that as well. We are always available for communication via skype, phone, email and any other messenger as well. Looking forward to hearing from you & moving forward Regards Aj
$15 USD in 1 day
5.0 (73 reviews)
5.7
5.7
User Avatar
Thank you for this interesting job and I have great experience on laravel. The best thin is that I am free enough to start the job right away. I am working as a full time freelancer. Please share the further task details so we can take it ahead. Warm Regards, Jay
$25 USD in 1 day
4.8 (32 reviews)
5.2
5.2
User Avatar
Look, I think, I can help you. Be glad to see you in chat. Thank you. P.S. I know WordPress well. Best regards, Ivan N.
$15 USD in 1 day
5.0 (22 reviews)
5.0
5.0
User Avatar
Hello Sir , I read through the job details carefully and I am excited to start working on this project. I am confident I can exceed your expectations. I have an extensive knowledge of Php, Wordpress, MySql, Html5, Css3, Javascript and more. I will be able to contribute to this project by: modifying 2 short codes as per your requirements. which will complete the project in time and with all required functionalities. Please let me know of a good time to discuss more about this project. Looking forward to build up a long term professional relationship with you. Thanks, Rajib
$12 USD in 1 day
5.0 (19 reviews)
4.8
4.8
User Avatar
Hi There, I can do this project, as per as your given requirements in a project description. As I have 19 years of experience in web development. Looking forward to hearing from you to do further discussion.
$25 USD in 1 day
4.9 (10 reviews)
3.9
3.9
User Avatar
Hi, I will modify this given Wordpress PHP code according to your requirements. Please share your requirements. I can write any code in PHP and Wordpress. I have more than 6 years experience. Can we chat ?
$20 USD in 1 day
4.9 (6 reviews)
2.9
2.9

About the client

Flag of UNITED STATES
Pinecrest, United States
5.0
61
Payment method verified
Member since Mar 16, 2011

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.