Equal Web Creative
Forum Replies Created
-
Forum: Plugins
In reply to: Alter my Dashboard Widget to Show Posts 60 days oldI have found the code on this page:
https://codex.www.ads-software.com/Template_Tags/query_posts#Time_Parameters
Where is says about the last 30 days but cannot get this into my code. Or how could I add to that to not show posts from category 1 and to show only 5 posts.
Forum: Fixing WordPress
In reply to: Choose a different image ratioYou can alter the default resizing that WordPress does when you upload media in Settings > Media
Forum: Fixing WordPress
In reply to: Prevent Image Uploads Default LinkThis I have solved this issue by going about it slightly differently. I have added an attachment.php template to my theme and in that file I have added the following, inside the loop:
<?php wp_redirect(wp_get_attachment_url()); ?>
This will redirect the user to the attachments URL, which then becomes just link pressing the link to ‘File URL’ rather than attachment or post URL
Forum: Fixing WordPress
In reply to: Can't Login :(If you could link to the live site where the link is a problem it may help.
Forum: Fixing WordPress
In reply to: navigation page problemUse the CSS classes that the function provides and create them with a right border on the CSS.
Forum: Hacks
In reply to: Controlling Your Own WP Custom FieldsAnswered by own question here! The code I have used is:
Add the following in your Custom Field array:
array( "name" => "select", "title" => "Select", "description" => "", "type" => "select", "scope" => array( "post", "page" ), "options" => array( "", "One", "Two" ), "capability" => "manage_options" )
Then add the following as a new case select:
case "select": { // Select echo '<label for="' . $this->prefix . $customField[ 'name' ] .'" style="display:inline;"><b>' . $customField[ 'title' ] . '</b></label>'; echo '<select name="' . $this->prefix . $customField[ 'name' ] . '">'; foreach ($customField[ 'options' ] as $option) { echo '<option>' . $option . '</option>'; } echo '</select>'; break; }
Forum: Fixing WordPress
In reply to: re-write problems with windows server 2003 and iisI have had WordPress working with pretty permalinks on IIS6 which I assume is what you are using. If you can upgrade to IIS7 then it should work much better, but IIS and WordPress is not the best solution.
For the upgrading of plugins you need to make it so that the FTP user is the same user as the user that owns the files on the server.
Forum: Fixing WordPress
In reply to: Paragraph Auto ResizingA link to your site showing the problem would be helpful in finding out what the problem is.
Forum: Themes and Templates
In reply to: Category links not workingHave you got a call to `<?php query_posts($arguments); ?> before your loop?
Forum: Installing WordPress
In reply to: New WordPress wont insert a picture in a page or postwhen I come to insert an image into a post
Could you explain exactly what you are doing in order to do this. It will help someone with a diagnosis.
Forum: Installing WordPress
In reply to: Server 500 error on install.php. phpinfo worksI always get that everytime I try and install on IIS7. Just edit the wp-config-sample.php file manually and rename it to wp-config.php.
Forum: Themes and Templates
In reply to: Couple CSS / Commenting questionsRemove it from page.php too
Forum: Fixing WordPress
In reply to: Login Screen WhiteTry deleting your active theme and then it will revert to the default. If it then works it will be a problem with your theme.
99% of the time that I get a white screen it is an issue with the themes functions.php file.
Forum: Networking WordPress
In reply to: Redirect Users After LoginFinally managed to do it with the code below that redirects all visits to domain.com/wp-login.php to the current blog.
<?php // redirects all instances of wp-login.php to the site home function change_login_redirect($redirect_to, $request_redirect_to, $user) { $primary_url = "/"; wp_redirect($primary_url); return $redirect_to; } add_filter('login_redirect','change_login_redirect', 100, 3); ?>
Forum: Fixing WordPress
In reply to: Dynamic menu highlighting not workingI would do it like this:
<?php if(is_page(2) ) { ?> <?php $liclass = "current"; ?> <?php } else { ?> <?php $liclass = "normal"; ?> <?php } ?> <li id="<?php echo $liclass; ?>"<a href="<?php bloginfo('url') ?>/?page_id=2">About us</a></li>