WordPress PHP shortcodes


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.



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' );



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

The developer should use his own environment, no FTP credentials will be given.

Beceriler: CSS, HTML, Javascript, PHP, WordPress

Daha fazlasını gör: make shortcode in php, how to create custom shortcode in wordpress, wordpress shortcode, wordpress shortcode example, how to use shortcode in wordpress page, create shortcode wordpress, wordpress create shortcode with parameters, wordpress shortcode tutorial, wordpress site book this project 6 days, 16 hours left OPEN Bids 137 Avg Bid (AUD) $1051 Project Budget (AUD) $750 - $15, This project has be revised and all the requirements reduces to meet the completion date and budget of this project, wordpress php project, wordpress php code editor, wordpress php project free download, wordpress php feed reader code, portfolio wordpress php code, generate sitemap wordpress php code, rss wordpress php code, php script project auction bid, wordpress php create custom code, wordpress php error log

İşveren Hakkında:
( 33 değerlendirme ) Buenos Aires, Argentina

Proje NO: #17298162


%selectedBids___i_period_sub_7% gün içinde 15%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(5 Değerlendirme)

Bu iş için 20 freelancer ortalamada $33 teklif veriyor


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

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(142 Değerlendirme)

Hi! I reading your project description, we are ready to assist you day and night, 24/7. we have diversity of skills with lot of experiences in PHP, CSS, HTML, PHP, WooCommerce, WordPress, Graphic Design, Web Design, R Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(110 Değerlendirme)

Hello, Greetings of the day!! I have read your job description and I am available to work on this assignment. I'm proficient in Wordpress, Html, Css and Php and can do this job efficiently. Lets discuss in d Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(34 Değerlendirme)

Dear hire manager, Gone through the project posted by you and clearly understood your need. 100% sure we will deliver good quality of work in your [login to view URL] are very much interested to work on this project. we have Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(29 Değerlendirme)

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 furthe Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(26 Değerlendirme)

Hi I have gone thru your project details and I am keen to work with you, have a look at my portfolio and lets get connected: 1. [login to view URL] – E-Commerce 2. [login to view URL] -- E-Commerce, T Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(30 Değerlendirme)

Hi, Hope you are doing well! I have read your job description along and assure you that I am a perfect fit for the job. I have experience with PHP from last 6 years and I have excellant web development skills Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(3 Değerlendirme)

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, H Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(13 Değerlendirme)

Hello, Hope you're doing great !! I have good work experience in Wordpress. I have developed several websites using Wordpress.I have also good knowledge of Code Igniter, Cake Php and Yii Frameworks. I am really good Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(5 Değerlendirme)

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.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(5 Değerlendirme)

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 ?

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(5 Değerlendirme)

Greetings! Thank you for posting the [login to view URL] have good experience in website design & development and having excellent skills to fit on your requirement. please have a look on my portfolio and let me know the good ti Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(4 Değerlendirme)

I am Team of expert developer and designer with 5+ year experience. i can also work in wordrepss shrort code. so i can do that in your project. please check my portfolio and please ping me discuss more. http://id Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)

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 tha Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)

Hi, This is Nishanth writing from Why Global Services. I'm a Senior Web developer having more than 6+ years of experience in Web application design and developments. Kindly ping me back with the detailed require Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)

Hi, Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have got Rich experience in Jooml Daha Fazla

$21 USD in 7 gün içinde
(0 Değerlendirme)

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.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)

 PHP Development  .NET Development  E-Commerce Development  CMS Development  Wordpress Development  Android App Development  IOS Development  Web Designing  ERP Solution  SEO  Web Site Maintenance Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)

Hi, Greetings! I am ready to start work immediately I have 8+ years in web designing & development with good experience in following skills: • HTML5 • CSS,CSS 3 & LESS • JS (Angular JS, Backbone JS, Rea Daha Fazla

$244 USD in 21 gün içinde
(0 Değerlendirme)