Glad you got it sorted KenScott, let us know if you need anything else.
more news/blog pages?
(122 posts)
(28 voices)
-
Posted 1 year ago #
-
Ruderic,
thank you! It worked just great!Posted 1 year ago # -
Hi Elliott,
I'm using the One Category template on Infocus, on a WPML translated website.
Yesterday before I update Wordpress to version 3.1.1, everything was running fine on both languages.
Since then, the Posts listing only occur on the main language, while in the secondary language, it says "Sorry, that document can not be found.". Even the Infocus Recent Posts widget doesn't show anything.It seems that the query is not being executed correctly, but it's weird because it's actually working on the main language of the website! Could this be some kind of incompatibility with the new version of WP?
Posted 1 year ago # -
Hi virtualmente,
Have you tried re-installing the WPML plugin?
Posted 1 year ago # -
Nope, I didn't actually. Wouldn't I loose all translated content by doing so?
Posted 1 year ago # -
Hello virtualmente,
I'm not really sure why it is doing that. Is it happening on both the blog and the one category template or just the template?
Try switching to the default theme and back to inFocus and then recreate the page again, (delete it, publish, set custom field).
Posted 1 year ago # -
Hi, just did some more testing:
- the blog is fine
- the one category template is finethe only problem is that the custom field for 'category' is not detecting any of the categories that are not on the main WPML language. is there any way I can change the custom field for 'category' to be based on the category ID instead of the name? maybe that way it would work, since translated categories have different IDs (just a guess).
Posted 1 year ago # -
Yes lets try that,
Open up the template and on line 171 you should see this,
$query_string = "category_name=". $cats ."&paged=$paged";Change it like this,
$query_string = "cat=". $cats ."&paged=$paged";And make sure to switch out the ID instead of the name in the custom field.
If that does not work then try putting both the ID of the english category and the other languages category inside the custom field and separate them with a comma like this,
1,2,3EDIT - I just installed WPML to check it out and it looks like you need to create a translated version of your page which uses a different language category. For instance if you have a category called blog in english and you wish to have posts in spanish also then you would create another category called "blog-spanish" or something similar.
You can create categories in another language by navigating to Dashboard -> Posts -> Categories, from here you can choose which language you want for your category. If you need more instructions then let us know virtualmente.
Posted 1 year ago # -
Thanks for the great support Elliott, and sorry for giving you all that trouble!
I had the translated categories in place, and everything was working fine before the latest WP update - no idea what happened there! Anyway, I managed to solve the problem by switching it into category IDs =)Thanks again! Wishes of future success for you guys!
Posted 1 year ago # -
Glad that worked for you virtualmente, let us know if you have any other questions.
Posted 1 year ago # -
Here I am again with another issue :)
I need my posts to appear on the one-category page in full, not just a teaser. I've tried to switch in reading options, but it didn't help.
Beforehand thanks.Posted 1 year ago # -
Hello Elizaveta Flora,
Open up your template file and around the bottom you should see this,
<div class="entry"> <?php the_excerpt(); ?> </div>You'll want to change it like this,
<div class="entry"> <?php the_content(); ?> </div>Let us know if that works for you.
Posted 1 year ago # -
Thank you, Elliot, it worked perfectly :)
Posted 1 year ago # -
Your welcome Elizaveta Flora, let us know if you have any other questions.
Posted 1 year ago # -
Hi there,
I use Awake and WMPL for englisch + german. I have only one category called News / Aktuell. What I did so far:
- Install category News (+ translation Aktuell)
- Set Blog page to News, use one-category-template
- Write Article in engl + german, publish in NewsMy problem:
- On the blog page everything works fine
- When I click on the article it opens up correctly BUT title and breadcrumb are in the standard language german.What can I do that in the english verision the correct title and breadcrumb is displayed?
Thanks a lot!
VorarlbergPosted 10 months ago # -
Hello Vorarlberg,
Does WPML work in your regular blog page?
Have you tried translating your News page to both German and English?
If possible then send us a link to your site so we can take a closer look.
Posted 10 months ago # -
Hi Elliott,
This is the regular blog page (I have only one). The News page exists in German and English (there I use the one-category only template), but of course no content (content are articles, which also exist in German and English).
As the site is for a client of mine and still protected, please send me an E-Mail Adress and I will give you access.
Thanks!
Posted 10 months ago # -
Hi Elliott
I have used the awake-template-one-category.php file I now have two blogs on my site hear
http://www.vocalinktesting.co.uk/have-your-say/page/2
I have a few questions I need help on, I dont know why /page/2 comes up in the URL can this be removed?
Also Blog posts are showing in these categoryReport Archive, Press Releases, In The News and marion-king
i just need marion-king posts to appear, how would I remove the rest of the categories?
Thanks for your help
Posted 10 months ago # -
Hello michaelharringtondesigns,
Wordpress needs the /page/2/ to figure out what page to display. There may be ways to remove it but I do not know of any. This would be something to ask on the Wordpress support forums.
With the one category template you need to choose which category to display by creating a new custom field called "category" and a value of your category ID. See page 1 of this thread for more details.
Posted 10 months ago # -
Hi...I am using infocus 2.0 and the one category template download is producing an error:
Warning: require(WEBTREATS_INCLUDES/var.php) [function.require]: failed to open stream: No such file or directory in /home/rachel/public_html/wp-content/themes/infocus/template-one-category.php on line 7
Warning: require(WEBTREATS_INCLUDES/var.php) [function.require]: failed to open stream: No such file or directory in /home/rachel/public_html/wp-content/themes/infocus/template-one-category.php on line 7
Fatal error: require() [function.require]: Failed opening required 'WEBTREATS_INCLUDES/var.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rachel/public_html/wp-content/themes/infocus/template-one-category.php on line 7
How can I get an updated one category template for this theme?
Posted 10 months ago # -
Hi Larryhir,
on inFocus 2.0 you can simply create a blank page and get the posts using a blog shortcode.
http://themes.mysitemyway.com/infocus/shortcodes/blog-posts-shortcodes/Here you can find all the details on how to use it:
http://mysitemyway.com/docs/index.php?title=Blog_ShortcodePosted 10 months ago # -
HI
I am getting this error wen i try to use the onecategory fix you provided. I am using infocus.
Fatal error: require() [function.require]: Failed opening required 'WEBTREATS_INCLUDES/var.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bosmojpv/public_html/wp-content/themes/infocus/template-one-category.php on line 7
Posted 10 months ago # -
Hello zaidaboobaker,
See Raspos post above. This file is only for inFocus 1.6 and below.
Posted 10 months ago # -
Hi Thanks.
How then would i create a one category specific post for the latest version of InFocus
Posted 10 months ago # -
For inFocus 2.0+ you can use our blog shortcode, http://mysitemyway.com/docs/index.php?title=Blog_Shortcode.
Posted 10 months ago # -
Elliot,
I tried to install your one category zip file and I got an error saying it's broken. Also, on your last post you mentioned the shortcode to use for inFocus. I have Awake1.3. Is there a shortcode section I can use. I tried to use your shortcode generator, but the posts won't display on the page.Posted 9 months ago # -
Hello shoptcategory5,
If your using Awake / inFocus versions 2.0 or greater then you would use our blog shortcode, http://mysitemyway.com/docs/index.php?title=Blog_Shortcode.
Make sure that your not excluding any post categories in Dashboard -> Awake -> Blog and that your posts are not hidden.
If your still having problems then PM us a Wordpress login so we can take a closer look.
Posted 9 months ago # -
shopcategory5
Member
PM this userI already tried using the blog shortcode generator, [portfolio cat=4 column=1 link=post max=9] . That didn't work. Also, I tried copying the code from the link you gave me, and that also doesn't work. I copied the code [blog_list thumb="large" showposts="1" offset="1" post_content="excerpt" category_in="3" pagination="true" disable="image,title,content,meta,more"] from your example and pasted it into the editor with no luck. Does that code work for Awake template? Was I supposed to paste it into the editor, or someplace else? Also how do you know if your posts are hidden?
Posted 9 months ago # -
I'll take a look at your PM in a minute until then please refrain from double posting.
Posted 9 months ago # -
any chance of getting the file to add it to Elegance theme?
Posted 8 months ago # -
Hello coachingschool,
This was for previous versions of Awake and inFocus. For our new framework you can do the same with our blog shortcode, http://mysitemyway.com/docs/index.php?title=Blog_Shortcode.
Posted 8 months ago # -
Hi Elliot, i must admit your support here is absolutely superb, i was stuck with a problem for about 4 days! and you fixed it in seconds! Themeforest user btw! cheers man :)
Posted 1 month ago #
Reply
You must log in to post.













