Are you the publisher? Claim or contact us about this channel

Embed this content in your HTML


Report adult content:

click to rate:

Account: (login)

More Channels


Channel Catalog

Channel Description:

WordPress › Support

older | 1 | .... | 342 | 343 | (Page 344) | 345 | 346 | .... | 413 | newer

    0 0

    Starting with 4.4 WordPress adds a new HTTP Header. It looks like this:

    Link: "<>; rel="""

    Does anyone know how to remove it? I know the REST API can be disabled, but I still would like to remove the HTTP Header as well.

    Also starting with 4.4 old methods to remove the X-Pingback HTTP Header no longer work. This is the header I am talking about:

    X-Pingback: ""

    I would be very happy if anyone could tell me how to remove both of these headers.

    0 0
  • 01/16/16--21:29: Maniooty on "Access denied"
  • When i open my site it shows Access denied. then i checked cpanel permission set for index.php is 000...after that i changed pemissions it works fine....after few hours the same problem happened....anyone says permanent solutions for this...

    0 0

    I trying to find a way to make a custom author archive page.

    I want 3 loops within the author.php

    1st loop... I want a normal author.php page that displays all the author's meta at the top.
    2nd loop... Between the 1st loop (author meta) and the 3rd loop (list of the author's posts) I want a loop to display a single custom post type posted by the author.
    3rd loop... I want a list of the author's normal posts posted by the author.

    I don't know how to get the CPT loop inside this file...

    This is sort of what I want...

    Loop 1: Author info
    Loop 2: author's Custom Post Type post content - only one post
    Loop 3: list of author's normal posts

    0 0

    Hi, I'm sending a jquery $.post function to a php script on my server. The post is going through fine and I can echo back a response of my posted values. However in my php I want to use these values to update user meta, so I'm sending the user id and the meta (the level they have reached in my game) and running these in update_user_meta like this:

    update_user_meta( $_POST['user_id'], 'level', $_POST['level']);

    But it creates an internal server error 500.

    Any advise as to why this might be/ what i'm missing would be great!



    0 0

    I am trying to create a menu which has each category as a main menu item, and has a list of authors that have posted in that category as child items under each category. I can't find anywhere that tells me how to go about doing this, I've looked at wp_nav_menu but that doesn't seem to do what's required.

    Currently the menu has been made using the menu GUI inside the appearances tab, but it doesn't seem to handle this functionality.

    this is the structure I'm after: (these URLs work, but if there's a better way, let me know)

    *category 1* /classes/category-1
    *author1* /classes/category-1?author_name=author1
    *author2* /classes/category-1?author_name=author2

    *category 2* /classes/category-2
    *author1* /classes/category-2?author_name=author1
    *author3* /classes/category-2?author_name=author3

    *category 3* /classes/category-3
    *author1* /classes/category-3?author_name=author1
    *author2* /classes/category-3?author_name=author2
    *author3* /classes/category-3?author_name=author3

    The menu location is primary

    Thanks :)

    Here's the current website:

    0 0

    I have created a custom Payment Gateway for a special EFT system we have setup. The Bank Account and Routing Number are supposed to get encrypted then sent to a Salesforce via the WooCommerce webhooks to be processed.

    Unfortunately, I cannot figure out how to add the Bank Number and Routing Number as line-items to the Order Webhook. I have been able to add them to the product line of a webhook, but that is not helpful, because it makes the webhook messy when every product has the bank number and routing number in the array. I feel like I've tried about every hook and filter, and I've tried to look in the hooks and filters of some other payment gateways and i have not been able to figure it out.

    Any clues on how I can hook a field in a payment gateway to the Order webhooks?

    0 0

    Hi guys, i’m trying to change the price position in the woocommerce product grid. The price usually appear under the product image and i would like it to be on the product image. So i need to move it in the appropriate div.

    Here is a screenshot to help you understand what i’m trying to do.

    You can see the <span class=”price”> is currently under the <div class=”inner_product_header”> and i would like to move it under the <div class=”thumbnail_container”>

    Many thanks in advance for your help.

    0 0

    Hi all,

    Is there a simple way to create an image hover, with two images that swap over when the mouse hovers over the first image?

    I've been looking around, messing with CSS and various other things, but can't seem to get it to work.

    The plugins in the repository don't seem to be much help, as they all seem to be about tempting me to buy the pro version (at least the ones I've tried) and the version they offer is next to useless.

    I don't need anything fancy, no additional text or anything else, I just need to go back to the 90s and swap two images.

    0 0

    I wasn't sure where to put this post but here it goes. I am trying to setup something where during registration a user is automatically enrolled to a mailing list based on a drop-down selection on the registration form. I am using Contact Form 7 as my registration form. Basically I am a National Organization with multiple Chapters and each user will be registering for a mailing list of their Chapter.

    I also want to aggregate all Users into a global mailing list, in addition to the more specific, Chapter level lists. Each Chapter Admin will be able to manage their own lists and send out emails to their own Chapter level lists. The National admin users will be able to send out to the global mailing list.

    Ideally there would be some sort of Newsletter Plugin hooked up to something like SendGrid. I am not sure where the lists should live or how best to manage those. I think I might just have to try out SendGrid and play around with some things but wanted to ask for advice if anyone has done something similar. I am not sure what the lists that are on SendGrid are used for because I thought SendGrid was just an API mostly for handling email messages. It seems it might be able to do more than that and even be able to handle sending the newsletters as well but I have to look into it further.

    I hope you understand my goals and I am just asking for general advice on how to best set this up. Thanks for your time and I appreciate any advice.

    0 0

    A general, open question for fellow developers. Let's say my plugin adds a new menu to the administration screen. A number of sub-menus all hang off it with relevant screens attached to them. If, however, I have another screen which is general settings related to the plugin - should I add these as another sub-menu item named "Settings" under my plugin's menu or should I be putting this screen under the "Settings" menu?

    All thoughts appreciated.


    0 0

    I have the following snippet that allows me to auto generate the post title. I'd like to change the $post_type of the 'post_title' => $post_type . ' Job #' . $post_id to some other post meta like post date and post author.

    Thanks heaps.

    function save_post_func_2134( $post_id ) {
        $post_type = 'post'; //Change your post_type here
        if ( $post_type == get_post_type ( $post_id ) ) {  //Check and update for the specific $post_type
            $my_post = array(
                'ID'           => $post_id,
                'post_title' => $post_type . ' Job #' . $post_id //Construct post_title
             remove_action('save_post', 'save_post_func_2134'); //Avoid the infinite loop
            // Update the post into the database
            wp_update_post( $my_post );
    add_action( 'save_post', 'save_post_func_2134' );

    0 0
  • 01/18/16--14:43: PrincEXOne on "wp-admin"
  • my website url:

    blocked by

    IP: [removed] (Root: Cyprus)
    Time: 11:00 Pm [GT +2 Istanbul, Turkey]
    Platform: Mozilla / 5.0 (Windows NT 5.2)

    and i can't enter my wp-admin,
    and i can't publish my php site...

    that how WordPress Security .....?????

    0 0


    I am using wp_editor in my plugin Stylish Notification Popup's settings page, everything is fine but the shortcode is not working. For example if we use [caldera_form id="CF5646fd9c36074"] then I am getting the same text instead of Caldera form on my plugin.

    So, how to output shortcode in wp_editor?

    0 0

    What I want to do:
    I want a call to action widget related to the category of an post to appear in that category or post page. Say there is a blog article about X, a "Buy an X Now!" widget appears in the sidebar to that article.

    The way I know how to do this is create a widget for each category with the logic: is_category( 'X') || (is_single() && in_category('X')). This works well but we have about 10 different products (and growing) which means 10 different widgets.

    Is there a cleaner/more efficient way to do this? I was thinking something like a widget with some logic like !(is_front_page() || is_home()) (to check if page is an article or category page)

    and a php function which would get the category and modify widget content for that content.

    However !(is_front_page() || is_home()) still displays the widget on the About pages etc. Also I don't know how to immediately change the widget title with this method. The php function would also be run when it did not need to.

    In essence what I am looking for in psudocode would be
    (if is a category page || or an article){
    (get the article id)
    (modify the widget to display content based on ID)
    (display the widget)
    else{don't display the widget}

    Any suggestions would be great. Thanks

    0 0

    I would like to call the javascript for my theme the right way for WordPress, and call it in my footer, so that I can get rid of the "Eliminate external render-blocking Javascript and CSS in above-the-fold content" Google PageSpeed warning messages about how slow the pages load.

    There is a bit of a description of how to do this by wpgeekster at this page, but I explored the links provided there and they don't really show how to actually implement this.

    For example, what would I put into my functions.php in order to get them to load in_footer like wpgeekster suggests? I'm hoping for an example of code here, that I could modify and use for my theme.

    Thank you,

    0 0

    Hello WP forum, I hope someone here can help me.

    I am using WordPress 4.4.1 and a twenty fifteen child theme.
    In fuctions.php I have added the following code so that every time there is an asterisk (*) it is automatically surrounded by span tags sop that I can center align it in the css targeting the .auto-style class.

    add_filter( 'the_content', 'auto_word_style' );
    function auto_word_style( $text ) {
    $text = str_replace( '*', '<span class="auto-style">* * *</span>', $text );
    return $text;

    But I need to run the code above only for a specific page template (my-template.php), so I changed the code into the following, but it doesn't work.

    if ( page_template ( "my-template.php") ) {
    	add_filter( 'the_content', 'auto_word_style' );
    	function auto_word_style( $text ) {
    	$text = str_replace( '*', '<span class="auto-style">* * *</span>', $text );
    	return $text;

    Thanks in advance,

    0 0

    Hi all
    So my problem is properly pretty basic.
    So i am using the Theme Customizr and i want to add an image in the center of my main page (start page) so i added an image widget to my left sidebar, the problem is that i cannot get the image centered.. I just made a child theme because customizr wont let me edit the style.css, but im really not sure which code i should add in order to do this and exactly where to add it..
    i still pretty new with WP, but i know that this is pretty basic..

    Does anyone know which code i should use??

    thanks in advance


    0 0


    I am considering writing a very simple PayPal integration plugin. I have looked at other PayPal IPN plugins, and one used a custom post type with postmeta and taxonomy terms while the other used a custom db table.

    I have also read , but I am still unclear as to which approach would be easiest/best.

    At that URL, it is recommended to use a new, custom database table for, "the type of data that will grow as time goes on, and that doesn't have individual names." That confuses me. What is an, "individual name"? Name of what?

    To me, it just seems like a kludge to put merchant transaction data into the posts and postmeta tables. But, is that actually acceptable?

    As I mentioned, this is intended to be a very simple plugin. It will not be for an e-commerce shop -- more along the lines of membership subscriptions.

    What do you, who I'm sure are more expert than me, think?


    P.S. I wish this forum had a search feature.

    0 0

    i've used PHP inside the Sidebar to show a Message.

    <?php $HKS_geschlossen = TRUE; ?>
    <?php if ( $HKS_geschlossen): ?>
    <?php endif ;?>

    My problem now is, that I have some more People using that Site, who have to change the Value of $HKS_geschlossen. Is there a Way to create sth like a Checkbox in the Admin-Bar where people with rights can change the Value? Thats what I thought is easy to use for "non-coders". If that doesn't work, does sb. know another way to simply change a Value to display/not display a part in the sidebar?

    Site is:


    0 0

    Hi, I'm after the function code needed to set wordpress to use a right sidebar layout as the default for just my blog posts. The rest of the site uses full width as default and I need that to stay as it is. The site is:

    Really appreciate any help on this :-)

older | 1 | .... | 342 | 343 | (Page 344) | 345 | 346 | .... | 413 | newer