Display Password Protected external RSS in wordpress template

I assume you mean fetching an external feed with an HTTP authentication. Fetching feeds with HTTP Authentication Note that fetch_rss() uses the MagPie library, that’s deprecated in WordPress. Use instead fetch_feed() that uses the SimplePie library. It looks though it doesn’t support this kind of url: http://user:[email protected]/feed/ like we can use with curl in command-line, … Read more

Child theme Page Template not loading

I fixed the problem by adding my parent’s index,page, and header.php to my child theme’s folder. If you’re not able to change the blog page template. Remove the page from the Settings > Reading, change the template and select your blog post again.

How to change plugin`s template (view) correctly?

Here is a little code snippet to get you started. This will query through the most recent custom post types named “custom_post_type”. Change this value to the name of the custom post you wish to query. <?php $args = array( ‘post_type’ => ‘custom_post_type’, // <– make sure to use the name of your custom post … Read more

How to create function from code?

You need to pass it at least 2 parameters, or it won’t know what to look for: <?php function custom_pagination($cat_id, $catnum) { // Start of Pagination $total_childs_query = get_categories( array( ‘parent’ => $cat_id, ‘hide_empty’ => ‘0’ )); $total_terms = count( $total_childs_query ); $pages = ceil($total_terms/$catnum); $base_url = get_term_link( $cat_id, get_query_var( ‘taxonomy’ ) ); // if … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)