How do I allow http/ftp access to files I have uploaded?

You might check out a plugin like this one. If you don’t want to go that route, I’d suggest using a page template and a technique like this to list out the files. Lastly, assuming you’re using apache, you could set apache to allow listing directory contents (not the best idea, IMO) and then edit … Read more

How can I prepopulate the URL address for the add media button

You can apply a filter to the output of the media insert url form using the filter named wp_media_insert_url_form: add_filter(‘wp_media_insert_url_form’, ‘ex46632_media_insert_url_form’); function ex46632_media_insert_url_form($html) { $html = str_replace(‘<input id=”src” name=”src” value=””‘, ‘<input id=”src” name=”src” value=”http://mysite.com/images/”‘, $html); return $html; } Something like this could be added to your theme’s functions.php file. This is untested code that is … Read more

Image not showing up in media loader success area – followup

untested, but it should work theoretically: add_filter(‘get_attached_file’, function($path, $file, $attachment_id){ // get the post object of the current attachment $att = get_post($attachment_id); // prepend attachment post parent ID to the file name return substr_replace($path, “{$att->post_parent}/{$file}”, -strlen($file)); }); Another filter, attempts to “fix” the path returned by WP’s upload handler: add_filter(‘wp_handle_upload’, function($results){ global $post; if(empty($post)) return … Read more

Make custom system url

Create a custom page template: <?php /** * Template Name: Random PHP */ get_header(); //add random PHP get_sidebar(); get_footer(); ?> Create a page in WordPress, give it the title portfolio. In the template select box choose Random PHP

Hook for feed creation?

It depends what you want to do as for when you want to hook into the process. the_content_feed is fired for each item in your feed, so this probably isn’t the one you are after. You could use pre_get_posts which fires just before WordPress queries the database: add_action(‘pre_get_posts’, ‘catch_the_feed’); function catch_the_feed($query){ if($query->is_main_query() && $query->is_feed()){ //It’s … Read more

Is there an URL listing latest posts

As mentioned in the comments, you want to replace your home page with a static front page under Settings > Reading. Then you’ll create a new page and set it as your posts page in the same setting. The slug of that new page then determines the URL of the posts page.

Extracting a variable from a permalink

You can get the queried author in author.php with get_queried_object(): $author = get_queried_object(); echo $author->ID; $author_data = get_object_vars( $author->data ); echo $author_data[‘display_name’]; echo $author_data[‘user_url’]; echo $author_data[‘user_email’];

Finding URI in Child Theme

Yes, stylesheet is for child themes, template for parent themes. Andrew Nacin has explained that recently on wp-hackers: child themes were originally just style.css and functions.php. That’s why “template” refers to the parent theme and “stylesheet” refers to the child theme.

Redirect Old wordpress url to new wordpress url

Maybe you could use an .htaccess rule to manage that, but i don’t know if WordPress handles that. It would have to be something like Redirect /olddirectory/oldfile.html http://example.com/newdirectory/newfile.html More info at: How do I redirect my site using a .htaccess file

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