Editing existing pre-created menus in PHP

I’ve found a solution to my problem by going over the documentation again and again, looking through source files and just generally running the same section of code over and over to scrutinize the output. This is the solution I came up with, which works just perfectly for my needs: // Get a list of … Read more

Why I’m Not Having Access to “$_POST” Data Outside My AJAX Callback?

Maybe It’s the Appropriate Answer for You! Accordingly to this question the more reasonable answer is to use wp_send_json() with (if only necessary) the wp_send_json_success() and wp_send_json_error() functions. They’ll return an JSON Object back to the AJAX Request and it will automatically die() for you. It will look something like this: add_action( ‘wp_ajax_origin’, ‘create_an_ajax_request_origin_form’ ); … Read more

Issue adding featured image option to functions.php

As user /u/majick suggests in the comments below: the better option may be after_setup_theme which looks like this: function theme_setup() { add_theme_support( ‘post-thumbnails’ ); } add_action( ‘after_setup_theme’, ‘theme_setup’ ); Another options is to use init. function theme_init() { add_theme_support( ‘post-thumbnails’ ); } add_action( ‘init’, ‘theme_init’ ); The init hook explicitly states: Fires after WordPress has … Read more

A custom RSS feed link, how do I modify the XML structure?

All of the native feeds and those that are added in line with WP API (add_feed()) rely on feed=[type] query variable and corresponding do_feed_{$feed} action hook where they are executed. From your description it’s different. Someone registered entirely different query variable in code and attached their own logic to it. There is no way to … Read more

Links in footer section

I have improved your code to a new version as i have found that you have used text “AGB” out of anchor tag Updated Code $html=””; $html .= ‘<div class=”zerif-copyright-box”>’; $html .= ‘<a class=”zerif-copyright” href=”http://themeisle.com/themes/zerif-lite/”‘.$attribut_new_tab.’ rel=”nofollow”>’.__(‘AGB’,’zerif-lite’).'</a>’; $html .= ‘<a class=”zerif-copyright” href=”” “‘.$attribut_new_tab.’ rel=”nofollow”> Impressum</a>’; $html .= ‘</div>’; $html .= ‘</div>’; echo $html; Hope this helps!