Kakoma
Forum Replies Created
-
I suggest you use UNIX line endings. NetBeans will display the file fine on your PC but on save (and subsequent upload), it’ll use UNIX-which is what your server needs
Forum: Fixing WordPress
In reply to: Saving and reloading any php files generates an errorA little late to the party but I’ll post this just in case someone else runs into the same issue. This seems to be a line endings issue. Your live server, from which you downloaded the files, is most likely running Unix. Your local machine probably isn’t. The two OSs use different line endings
As of Netbeans 7.3, there is a new change-line-endings-on-save plugin that allows you to configure line endings globally or on a per-project basis. Check it out here
Aramaz, this seems like a line endings issue. Your live server, from which you downloaded the files, is most likely running Unix. Your local machine probably isn’t. The two OSs use different line endings
I don’t think W3TC is the issue here; if it was, php files wouldn’t be affected.
As of Netbeans 7.3, there is a new change-line-endings-on-save plugin that allows you to configure line endings globally or on a per-project basis. Check it out here
Forum: Themes and Templates
In reply to: Theme Twenty Fourteen Titles & ImagesHi Andy,
Are you using a child theme?Use this CSS in your stylesheet:
.entry-title { text-transform: capitalize; }
Forum: Fixing WordPress
In reply to: Run two sites from one databaseHi Carmdq,
Does the branding info on the sites have to be customizable? If not, you can have one database and then the themes for each of the sites can be hard-coded with the site name/tagline/etcHi Mithun,
Ensure that your tracking file is still intact; the migration of WordPress to a different directory doesn’t matter if you left the tracking file intact [and the tracking code in each page template]Forum: Fixing WordPress
In reply to: Two problems – ?wpr-optin and wp-login.phpCongrats @cavey85. Please mark the issue as ‘Resolved’
Forum: Fixing WordPress
In reply to: Two problems – ?wpr-optin and wp-login.phpKindly share the site URL to help us recreate the issue
Forum: Fixing WordPress
In reply to: Get recent post permalinks by categoryAdd the code to the custom page template you created for your Topics page
Forum: Fixing WordPress
In reply to: Category post template not workingDid you add the code to functions.php? And put the files in the Twenty Thirteen folder?
Forum: Fixing WordPress
In reply to: WordPress Update DisasterNo worries. Did the update complete successfully?
Forum: Fixing WordPress
In reply to: Get recent post permalinks by category<ul> <?php $category_posts = new WP_Query('cat=x&showposts=y'); while ($category_posts ->have_posts()) : $category_posts->the_post();?> <li> <a class="yourclass" href="<?php the_permalink(); ?>" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?> </a></li> <?php endwhile; ?> </ul>
Replace x with the category ID and y with the number of links you’d like to retrieve
Forum: Fixing WordPress
In reply to: WordPress Update DisasterHey,
Go here: https://www.mindyourpaws.co.uk/blog/wp-login.php and login usually. Complete the update and all should be wellForum: Fixing WordPress
In reply to: Category post template not workingLet’s try this:
Deactivate all plugins
Switch to the default theme, Twenty Thirteen
Put the code I shared above in functions.php and then add both your files (single-client.php and single-clients.php) to the Twenty Thirteen theme directory
TestForum: Fixing WordPress
In reply to: Category post template not workingYou ought to be looking at https://codex.www.ads-software.com/Post_Types#Custom_Post_Type_Templates
single-{post_type}.php
Your file should be single-client.php for it to be used [or single-clients.php, depending on what you called the post type]