Title: Solving this plugin problems
Last modified: September 8, 2018

---

# Solving this plugin problems

 *  Resolved [binyaz](https://wordpress.org/support/users/binyaz/)
 * (@binyaz)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/solving-this-plugin-problems/)
 * If you are like me looking for a plugin to show the latest videos from aparat.
   com, this is the only plugin but it may have some problems that i explain here
   how to fix them:
 * 1- If you use its widget and the page rendering stopped right there, the allow_url_fopen
   is disabled in your hosting, if you cannot change it (there are many ways to 
   do this) you have to change wp-aparat/aparat.php and replace this line
 *     ```
       $item_page = file_get_contents( $item->get_permalink() );
       with something like this
       ```
   
 * $url = $item->get_permalink();
    $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL,
   $url); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt ($ch, CURLOPT_RETURNTRANSFER,
   true); $contents = curl_exec($ch); if (curl_errno($ch)) { echo(“Error loading
   file”); echo curl_error($ch); return; } else { curl_close($ch); }
 * if (!is_string($contents) || !strlen($contents)) {
    echo(“Error loading file”);
   return; } $item_page = $contents;`
 * 2- it doesn’t show the date correctly, to fix this replace this
    `<?php if ( 
   function_exists( 'jdate' ) ) { echo jdate( "j F Y", $item->get_date() ); } else{
   echo date( "j F Y", $item->get_date() ); } ?>` to this `<?php echo date_i18n("
   j F Y", strtotime($item->get_date()) ); ?>` in the same file.
 * 3- If you also don’t like the video title font, remove the following line from
   wp-aparat/assets/css/style.css/style file:
    font-family: IRANSans-Light-web;
 * Good luck

The topic ‘Solving this plugin problems’ is closed to new replies.

 * ![](https://ps.w.org/wp-aparat/assets/icon.svg?rev=2760229)
 * [Aparat for WordPress](https://wordpress.org/plugins/wp-aparat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-aparat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-aparat/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-aparat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-aparat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-aparat/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [binyaz](https://wordpress.org/support/users/binyaz/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/solving-this-plugin-problems/)
 * Status: resolved