Kakoma
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Theme: Twenty Eleven] Cannot make layout 100% wideHave you looked at creating a child theme? You could set one up with two files and two lines of CSS. This ensures that your changes stay even when the theme is updated
Forum: Themes and Templates
In reply to: Theme with Custom Post Type and pagination@piotrnet, so you already have the custom post types covered by a plugin? In which case you only need a theme with pagination? Might I (shameless plug) suggest my theme, Jaguza. It has pagination but doesn’t have custom post types which is why I didn’t suggest it initially. I could look around and suggest something else in the event that it doesn’t suit your needs
Forum: Fixing WordPress
In reply to: Category post template not workingThat’s perfectly ok. Then let’s use this: [Custom post types]
To the functions.php file in your theme, add this:add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'clients', array( 'labels' => array( 'name' => __( 'Clients' ), 'singular_name' => __( 'Client' ) ), 'public' => true, 'has_archive' => true, ) ); }
It’ll work. In the event that you want to know a bit more about what’s going on, check this out:
https://codex.www.ads-software.com/Post_Types#Custom_Post_TypesForum: Fixing WordPress
In reply to: Category post template not workingOk so the template you created, category-4.php will appear here:
https://localhost/virtualassistant/?cat=4
Suggestion one: [we’ll stop when we find something that works for you]
1. Create category ‘clients’ (Or ‘client’, you seem to already have one called this)
2. Change your permalink structure (Settings > Permalinks) to custom and use this
/%category%/%postname%/
3. Create posts, and name them using the client names
4. All your clients will be displayed here: https://localhost/virtualassistant/category/client
If ‘client’ is your category nameSuggestion two involves custom post types. It involves a bit of development
Forum: Fixing WordPress
In reply to: Category post template not workingThat’s fine. https://localhost implied that you are working locally.
I meant what’s your site’s folder name in your www directory?
Alternatively, what’s the URL of your homepage?Forum: Fixing WordPress
In reply to: Category post template not workingAhhhh. Eureka. I ought to have asked the right question from the get-go. That’s where the issue is. URLs.
category-4.php kicks in on https://localhost/client/?cat=4 [Assuming your WordPress install is in the ‘client’ folder]
What is your site name?
[Have you considered custom post types?]
Forum: Fixing WordPress
In reply to: Category post template not workingWhat URL are you checking?
Forum: Fixing WordPress
In reply to: Category post template not workingTwo things:
1. Where are you checking? category-client.php is for the Archives page of the category with the slug ‘client’. This page can be found here:
https://{yourhost}/?cat=x
Where x is the category ID
2. What is the slug of your category? Is it ‘client’?Confirm these two things. It’ll work
Forum: Themes and Templates
In reply to: Theme with Custom Post Type and paginationHave you considered using a category to present those terms, privacy policy, etc?
You could put them in a specific category and display them on your home-page (or wherever) as you see fit by writing a query that returns them.
e.g. If all your terms, privacy policy, etc are in the ‘Legal mumbo jumbo’ category, you can display them differently on the homepage using:if(in_category('legal-mumbo-jumbo')){ //Do something here }
Then to display your standard “Posts”, you could use:
if(!in_category('legal-mumbo-jumbo')){ //Do something here }
Alternatively, you could write a query that returns only a specific post on a different part of the site.
Going only by your description above, I don’t think you need custom post types. We can go into creating custom post types if you really feel they are what you need
Forum: Fixing WordPress
In reply to: Help! Pop ups suddenly appearing on my site!!!Good point @andrew
This is a premium theme; first involve your theme author
Their support channel is here: https://support.designerthemes.com/
The theme uses colorbox…which is causing the pop-up. Why it is behaving that way needs to be answered by themForum: Themes and Templates
In reply to: Theme with Custom Post Type and paginationMay I ask why you need the custom post type? (To see if your goal can be achieved another way…so you only need a theme with pagination)
The alternative is I could show you how to add pagination to a theme so all you need is one with custom post types.Forum: Themes and Templates
In reply to: Responsive theme not displaying correctly on Cell PhonesThis is a premium theme. In the theme author’s words:
Hands-on support for this item is provided by WebFactory HereResponsiveness not working on some devices points to the need for further optimisation of the media queries in the theme. Please take it up with the theme author
Forum: Fixing WordPress
In reply to: Help! Pop ups suddenly appearing on my site!!!Hey,
Relax. Woosah.
Have you recently added colorbox? It’s causing the pop-up.Forum: Fixing WordPress
In reply to: Category post template not workingDo you have a category named ‘clients’? (single.php isn’t for categories so it won’t work)
clients.php won’t work eitherFrom the category template heirarchy, WordPress will use the first Template file it finds in your current Theme’s directory from the following list:: (in order of ‘priority’
https://codex.www.ads-software.com/Category_Templatescategory-slug.php category-ID.php category.php archive.php index.php
If your category slug is ‘clients’, category-slug.php will work. Confirm what your slug is and change your file name accordingly
Forum: Themes and Templates
In reply to: Show All Category PostsHi,
In which file is this code?
You need to add:
query_posts('cat=x');
beforeif ( have_posts() ) :
Replace ‘x’ with the category ID of the category you’d like to display