WordPress.org

Profiles

PhPCentre

Profile picture of PhPCentre
  • Member Since: June 22nd, 2014
  • phpcentre.net
  • Find me on:

  • Posted a reply to "Files remain & url not rewritten", on the site WordPress Support Forums:
    Hey... your are right, the codes did not take care of the year/month settings, we…

    1 week ago

  • Posted a reply to "Display only manual excerpt on index (function).", on the site WordPress Support Forums:
    Then use this instead: function custom_excerpt($text) { // custom 'read more' link global $post; if…

    1 week ago

  • Posted a reply to "Can I add fields to the standard WP "All Users"?", on the site WordPress Support Forums:
    Parse error: syntax error, unexpected '&', expecting ']' in ... The codes I gave you…

    1 week ago

  • Posted a reply to "Can I add fields to the standard WP "All Users"?", on the site WordPress Support Forums:
    OK...to make the date column sortable add the following code also in your functions.php file:…

    1 week ago

  • Posted a reply to "Can I add fields to the standard WP "All Users"?", on the site WordPress Support Forums:
    Insert the codes in your theme's functions.php file...

    1 week ago

  • Posted a reply to "Can I add fields to the standard WP "All Users"?", on the site WordPress Support Forums:
    To show user registration date column in the users table, use something like this: add_filter('manage_users_columns',…

    1 week ago

  • Posted a reply to "What's the right hook to use as a post is loading?", on the site WordPress Support Forums:
    First of all the default wp post don't have post parent assign to them, unless…

    1 week ago

  • Posted a reply to "Files remain & url not rewritten", on the site WordPress Support Forums:
    The issue is kind of strange because the codes that handles upload to s3 and…

    2 weeks ago

  • Posted a reply to "Adding JS to wordpress menu item", on the site WordPress Support Forums:
    Use the wp_enqueue_script() function to properly load your scripts. https://codex.wordpress.org/Function_Reference/wp_enqueue_script http://wordpress.stackexchange.com/questions/556/what-is-the-preferred-way-to-add-custom-javascript-files-to-the-site

    2 weeks ago

  • Posted a reply to "Display only manual excerpt on index (function).", on the site WordPress Support Forums:
    On second thought, this is what you will do. While saving your manual excerpt in…

    2 weeks ago

  • Posted a reply to "Adding JS to wordpress menu item", on the site WordPress Support Forums:
    Ok now I get what you are trying to do. How are you then loading…

    2 weeks ago

  • Posted a reply to "Display only manual excerpt on index (function).", on the site WordPress Support Forums:
    I hope you did not replace the entire code in the function with the line…

    2 weeks ago

  • Posted a reply to "Adding JS to wordpress menu item", on the site WordPress Support Forums:
    First of all, your js should look more like this: jQuery(document).ready(function($) { $(".hide_nav").click(function(){ $(".webform").hide(500); });…

    2 weeks ago

  • Posted a reply to "Display only manual excerpt on index (function).", on the site WordPress Support Forums:
    Change this line: $excerpt = '' . strip_tags($text) . '<div class="readmore"><a class="readmore" href="'. get_permalink( get_the_ID()…

    2 weeks ago

  • Posted a reply to "Edit "Attachment Display Settings"", on the site WordPress Support Forums:
    Ok... What you are asking for,is a little bit tricky. We will need to create…

    2 weeks ago

  • Posted a reply to "Programmatically set thumbnail via URL - IF ELSEIF issue", on the site WordPress Support Forums:
    One more suggestion, just try to make your codes as DRY as possible. I see…

    2 weeks ago

  • Posted a reply to "Edit "Attachment Display Settings"", on the site WordPress Support Forums:
    Insert the codes in your theme's functions.php file...

    2 weeks ago

  • Posted a reply to "Edit "Attachment Display Settings"", on the site WordPress Support Forums:
    Something like this would work: add_filter( 'media_send_to_editor', 'mp3_media_insert', 20, 3 ); function mp3_media_insert( $html, $id,…

    2 weeks ago

  • Posted a reply to "Programmatically set thumbnail via URL - IF ELSEIF issue", on the site WordPress Support Forums:
    Assuming you want to use the first value for key 'original_guid' in your custom field,…

    2 weeks ago

  • Posted a reply to "Custom Upload Path by Post Type", on the site WordPress Support Forums:
    So so sorry..I double checked the EWWW file and the code I reference above was…

    2 weeks ago

  • Posted a reply to "Programmatically set thumbnail via URL - IF ELSEIF issue", on the site WordPress Support Forums:
    Something like this works: add_action('publish_post', 'auto_featured_image_publish_post',10,2); function auto_featured_image_publish_post($post_id, $post) { $cat_detail=get_the_category($post_id); $cat_name = array(); foreach($cat_detail…

    3 weeks ago

  • Posted a reply to "Files remain & url not rewritten", on the site WordPress Support Forums:
    This did not affect previously uploaded files. I am assuming your previously uploaded files are…

    3 weeks ago

  • Posted a reply to "Custom Upload Path by Post Type", on the site WordPress Support Forums:
    I have not used the EWWWW plugin, but I managed to go through the files,…

    3 weeks ago

  • Posted a reply to "Custom Upload Path by Post Type", on the site WordPress Support Forums:
    Where exactly did you insert the codes in your theme's functions.php file?..

    3 weeks ago

  • Posted a reply to "Custom Upload Path by Post Type", on the site WordPress Support Forums:
    The codes are working on my end. Did you turn on the path option in…

    3 weeks ago

  • Posted a reply to "Custom Upload Path by Post Type", on the site WordPress Support Forums:
    The codes are working on my end. Did you turn on the path option in…

    3 weeks ago

  • Posted a reply to "Custom Upload Path by Post Type", on the site WordPress Support Forums:
    Sorry for the delay, was a little busy with stuff. So this is what you…

    3 weeks ago

  • Posted a reply to "Custom Upload Path by Post Type", on the site WordPress Support Forums:
    I need to understand properly what you are trying to do. Are you trying to…

    3 weeks ago

  • Posted a reply to "Custom Upload Path by Post Type", on the site WordPress Support Forums:
    I think you have the filter wp_update_attachment_metadata mistaken. That filter is used for image attachment…

    3 weeks ago

  • Posted a reply to "Multiple versions of the same image", on the site WordPress Support Forums:
    Yes that is meant to be the case, the different image sizes are used by…

    3 weeks ago

  • Posted a reply to "Multiple versions of the same image", on the site WordPress Support Forums:
    but then I check Amazon and I have multiple variations of the same image Do…

    3 weeks ago

  • Posted a reply to "Link to date_query results in WordPress", on the site WordPress Support Forums:
    You need a custom query var.. http://www.rlmseo.com/blog/passing-get-query-string-parameters-in-wordpress-url/

    3 weeks ago

  • Posted a reply to "Adding the datepicker in events plugin", on the site WordPress Support Forums:
    When working with js always use the browser console to help detect errors in your…

    3 weeks ago

  • Posted a reply to "Prevent users from changing e-mail address", on the site WordPress Support Forums:
    Thanks to you too, so can you mark this issue as resolved please..

    3 weeks ago

  • Posted a reply to "Prevent users from changing e-mail address", on the site WordPress Support Forums:
    The codes I gave you are working on my end and made the change in…

    3 weeks ago

  • Posted a reply to "Prevent users from changing e-mail address", on the site WordPress Support Forums:
    The codes I gave you are working on my end. and made the change in…

    3 weeks ago

  • Posted a reply to "Custom field to custom taxonomy term?", on the site WordPress Support Forums:
    Use the isset() check for the post variable like so: if ( isset( $_POST['checkbox1'] )…

    4 weeks ago

  • Posted a reply to "Prevent users from changing e-mail address", on the site WordPress Support Forums:
    Also if you don't like the javascript, you can use jquery, so the script can…

    4 weeks ago

  • Posted a reply to "Prevent users from changing e-mail address", on the site WordPress Support Forums:
    Ok I have a solution for you, to stop the error "Please enter an email",…

    4 weeks ago

  • Posted a reply to "Prevent users from changing e-mail address", on the site WordPress Support Forums:
    Ok I have a solution for you, to stop the error "Please enter an email",…

    4 weeks ago

  • Posted a reply to "Custom field to custom taxonomy term?", on the site WordPress Support Forums:
    Ok.. use this: //Custom field to custom taxonomy script $input_terms = array(); $input_terms[] = sanitize_text_field(…

    4 weeks ago

  • Posted a reply to "Prevent users from changing e-mail address", on the site WordPress Support Forums:
    There is no need to create another js folder, you can use the folder (…

    4 weeks ago

  • Posted a reply to "Prevent users from changing e-mail address", on the site WordPress Support Forums:
    Just disable the email input field the same way the username input field is disabled,so…

    4 weeks ago

  • Posted a reply to "use international characters to slug", on the site WordPress Support Forums:
    Have you tried this solution http://wordpress.stackexchange.com/questions/50533/how-to-map-permalinks-with-accented-letters-to-sanitized-slugs

    4 weeks ago

  • Posted a reply to "Custom field to custom taxonomy term?", on the site WordPress Support Forums:
    You could use the explode function to break up the input value like so: $input_1…

    4 weeks ago

  • Posted a reply to "Post type tree loop", on the site WordPress Support Forums:
    Use this: $loop = new WP_Query( array( 'post_type' => 'your_post_type', 'post_parent' => 0 , 'posts_per_page'…

    4 weeks ago

  • Posted a reply to "Remove Tags From Being Displayed in get_the_tags function", on the site WordPress Support Forums:
    Use get_the_tag filter https://developer.wordpress.org/reference/functions/get_the_tags/

    4 weeks ago

  • Posted a reply to "display post for logged in user only", on the site WordPress Support Forums:
    Try this: global $wpdb; $current_time = current_time('mysql'); $author_id = get_current_user_id(); $ereminder_array = $wpdb->get_results( $wpdb->prepare(" SELECT…

    4 weeks ago

  • Posted a reply to "Display progress of an ajax call", on the site WordPress Support Forums:
    You could break up the calls into two, make the first ajax call for task…

    1 month ago

  • Posted a reply to "Watermark without plugins", on the site WordPress Support Forums:
    Use this wp_generate_attachment_metadata filter, it fires after creating thumbnails.

    1 month ago