Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] How can I have one post on main page with archives showing all posts (http://forum.bytesforall.com/showthread.php?t=18331)

disfasia Sep 9, 2012 12:44 PM

[SOLVED] How can I have one post on main page with archives showing all posts
 
http://oneworldnow.net

There is a month archive on the right which I like but when I click on that, only one post shows up not all for that month. I changed the blog page read to 5 and that allows five to show up in the archive but I really want to keep my home page simplified to one post.

How can I fix this?

Thanks in advance!

lmilesw Sep 9, 2012 12:54 PM

You could use a plugin that let's you put a shortcode on the home page and allows for showing only one post.

disfasia Sep 9, 2012 01:49 PM

Can you suggest a reliable plugin?

Thanks so much!

lmilesw Sep 9, 2012 05:14 PM

TPG Get Posts is one.

disfasia Sep 10, 2012 04:02 AM

I downloaded this and others and I cannot see how to put code in the homepage. It seems to only allow for individual posts. No information is given further on these plugins or the short code..

What do you know of this? Where is the homepage php document?

Thanks again!

juggledad Sep 10, 2012 04:33 AM

what do you have set at dashboard->settings->reading->Blog pages show at most?

this value controls how many posts show on any multi post page and the archive page is a multi post page.

lmilesw Sep 10, 2012 05:09 AM

To use TPG Get Posts you need to change your setting in Settings>Reading to use a static page as the front page.

disfasia Sep 10, 2012 05:53 AM

I have it now set to one which is what I want for the entry page, but I also want the archives on the right-hand bar to show more than one post when a month/year is called up.

What I would like is the latest page on the front page, but for index/archives, I really do need that a list can be displayed of all articles for said month/year/topic.

disfasia Sep 10, 2012 09:21 AM

Wont the static page remain always the same, not the last posted?
Thanks again.

lmilesw Sep 10, 2012 09:49 AM

Quote:

Originally Posted by disfasia (Post 89480)
Wont the static page remain always the same, not the last posted?
Thanks again.

You use the static page with the TPG Get Posts plugin and shortcode.

disfasia Sep 10, 2012 10:54 AM

I am still trying to make this work but in the meantime a buttton has appeared on my menu: "Home".

How do I remove this?

Thanks

disfasia Sep 10, 2012 11:04 AM

I removed the Home link but still struggling to get this code to work.

disfasia Sep 10, 2012 11:21 AM

I created a X page and put [ tpg_get_posts numberposts=1 ] in it. This does not work. Any ideas?

disfasia Sep 10, 2012 11:28 AM

Now I have figured it out BUT...it doesn't work. In other words, the [ tpg_get_posts numberposts=1 ] works fine on my test home page but when I set the number of blog posts back to 10, it still loads 10 pages on the home page.

lmilesw Sep 10, 2012 11:40 AM

It looks like you have a space after the opening and before the closing bracket causing the shortcode not to work.

juggledad Sep 10, 2012 11:41 AM

Create a page - call it 'new home' for now
Put the short code in with number posts=1
At settings->reading
A) set number of posts to 10
B) set front page displays - point this at 'new home'

Now the front page should go to 'new home' and display 1 post while the archive shows 10

disfasia Sep 10, 2012 11:43 AM

Thanks so much lmilesw and Juggledad. That worked. It was the space.

Now how to make that title of my "X" page disappear from the home page..so that the size, font, etc are the same as the other posts! I notice the other menu posts, for instance, don't have at the bottom of the page:

"No Comments » | Filed under: Politics | Tags: No Tags"

How can I remove this?

I imagine to remove the X from the menu I just create a custom menu. :)

Thanks again!

lmilesw Sep 10, 2012 12:24 PM

You can turn on Post/Page options in the theme settings and then uncheck the box on that page so the title doesn't show or you can use CSS for that page to hide the title. The items on the bottom are handled in the Post/Page Info section of the theme options.

disfasia Sep 10, 2012 05:32 PM

I am going bald here. I think the scripts made my colors and sizes of fonts change because suddenly after installing it, they were altered.

I have fixed most everything but i am still stuck for the homepage http://oneworldnow.net/

1. How do I remove the X title?
2. How do I remove the byline? (It doesnt' show at all for the other posts)
3. How to remove this last line before the grey:

No Comments » | Filed under: Politics | Tags: No Tags


Thanks for any and all help!

juggledad Sep 10, 2012 07:07 PM

to have the X not display, you can just use 'display: none;' for the element
to remove the byline, look at the page/post info item options
wat last line before the grey?

disfasia Sep 11, 2012 01:14 AM

Yes, I tried that..but when I get rid of the X I get rid of all headlines. Is there a way to control only that front page?

And I don't think the byline is called the byline for the X page as I have used display: none; for that and it doesn't turn it off....

And then I tried going through style.css but there nothing changes either. And I am used to changing style sheets.... ???

juggledad Sep 11, 2012 04:23 AM

Quote:

Is there a way to control only that front page?
yes, prefix the CSS selector with 'body.page-id-xx' where xx is the page id - you can fine that by going to the page, look at the source and do a search for '<body'

Quote:

And I don't think the byline is called the byline for the X page as I have used display: none; for that and it doesn't turn it off....
once again, look at the source of the page to find the HTML elements and ID/classes assigned to it - the FireBug extension of FireFox is a great help doing things like this - you can even change the CSS on the fly to see it's effects. Learn to use it.

disfasia Sep 11, 2012 04:49 AM

Thanks... So do I edit from ATO pages or from the style.css file? Or do I create a custom.css file?

I have used Firebug but when I tried to replicate the commands it didn't work. But then I might have put them in the wrong place.

disfasia Sep 11, 2012 05:09 AM

I have put:

body.page-id-2046

.h1 {font-size: 0px;}

In the style.css and nothing changes... I have also tried display: none; etc.

juggledad Sep 11, 2012 05:10 AM

you can add custom CSS at ato->add HTML/CSS Inserts->CSS Inserts and then they are stored with the rest of the theme options, no editing of code needed.

Quote:

I have put:

body.page-id-2046

.h1 {font-size: 0px;}

In the style.css and nothing changes... I have also tried display: none; etc.
if that is exactly what you put in, it won't do anything since the CSS selector (the part before the {...}) is looking for a class of h1 (the period indicates a class)


All times are GMT -6. The time now is 04:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.