Koliu
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 3 questions on using Custom Post TypesNo worries 🙂
Forum: Fixing WordPress
In reply to: 3 questions on using Custom Post TypesIn order to fix that, you have to edit your theme’s category.php file. If there’s no such file, then you have to edit archive.php or index.php if there also isn’t archive.php one.
Find the following (or something similar to it):
while ( have_posts() ) : the_post();and just before that line add the following piece:
global $wp_query; $custom_args = array( 'post_type' => array( 'post', 'your-custom-post-type' ) ); query_posts( array_merge( $wp_query->query_vars, $custom_args ) );Hope that helps,
NikiForum: Themes and Templates
In reply to: Sidebar WidthNo problem at all.
If you take a look to your main template, you will notice there are two main divs, one for your sidebar, and one for the main content:
<div class="container"> <div class="two columns"> <div class="sidebar">...</div> </div> <div class="fourteen columns"> ... </div> </div>The Skeleton CSS framework is setting 120px width for the “two columns” div. The code I gave you simply expanded the sidebar div, which is inside of that one.
Another way you can do that is by changing the numbers to (for example) “four columns” and “twelve columns”. Then you have to decrease the left margin of the “all-posts-box” child element.
You may also want to check how your site looks on lower resolutions and make some changes via media queries where that is needed.
Cheers
Forum: Fixing WordPress
In reply to: 3 questions on using Custom Post TypesHey,
No worries.
As for #1, I misunderstood your question at first, so your confusion is actually my fault 🙂 Yes, you can do that, it’s not a bad idea, neither bad practice.
Best,
NikiForum: Themes and Templates
In reply to: Sidebar WidthAdding this at the bottom of your CSS file should do the trick:
.sidebar, .sidebar .newd.columns { width: 270px; } .sidebar input#s { width: 260px; }Niki
Forum: Themes and Templates
In reply to: [Pilcrow] Remove unwanted comments on home page.This plugin may help, although I didn’t tested it. Another way you can do that is via SQL query.
Forum: Fixing WordPress
In reply to: Now I can't log into my wordpress siteProbably he is using proxy which filters cookies, or there is another thing blocking the WP test cookie.
This is the easiest way to fix that issue that I can come up with. I believe it will do until the core developers find a way to improve that piece.
Forum: Fixing WordPress
In reply to: Now I can't log into my wordpress siteNo worries. There is another way to fix this, however it’s a core hack, so you may need to redo it again upon next update.
Open your wp-login.php file and remove/comment the following piece of code. It should be somewhere around line 743:
// If cookies are disabled we can't log in even with a valid user+pass if ( isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE]) ) $user = new WP_Error('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress.")); else $user = wp_signon('', $secure_cookie);Forum: Fixing WordPress
In reply to: 3 questions on using Custom Post TypesHey Dan,
1. You have to create custom taxonomy (in other words custom categories) for your post type. CPT cannot be assigned to default taxonomy such as post categories.
2. If for example your CTP is called “portfolio”, then you have to create a “archive-portfolio.php” file into your theme directory. Just copy the source from the default archive.php/index.php file and make the changes you have in mind.
3. In my experience, it all depends of how popular your site is. The main problem with the pretty permalinks is that they make your website slower. If you don’t have big traffic you normally won’t need to worry about that. However, you should be able at least to add an ID to your permalinks.
4. Yep, http://example.com/feed/?post_type=cpt-name
Niki
Forum: Fixing WordPress
In reply to: Now I can't log into my wordpress siteTry adding the following code to your wp-config.php file:
define('ADMIN_COOKIE_PATH', '/'); define('COOKIE_DOMAIN', ''); define('COOKIEPATH', ''); define('SITECOOKIEPATH', '');Then delete all cookies from your website and try to login again.
Niki