Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-17-2012, 03:25 PM   #1
Darrell
Confirmed User
 
Join Date: Feb 2003
Location: In bed asleep
Posts: 803
Can any WordPress experts help me with something please?

Can anybody help me with this Wordpress problem please?

I want to have a static front page (I can do that myself ) with a block of random thumbnail links to posts like a TGP. I can't figure how to do this

Thanks
Darrell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-17-2012, 03:42 PM   #2
AdultKing
Raise Your Weapon
 
AdultKing's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
Use the Headway theme and some code like below.

PHP Code:
<?php query_posts('showposts=999&random=true');?>
<?php 
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div>
        <h1><?php the_title(); ?></h1>
        <p><?php postimage('thumbnail'); ?></p>
    </div>
<?php endwhile; else: ?><p>Oops, no posts!</p><?php endif; ?>
You'd have to tweak the code to get exactly what you want. The code above grabs a random post and displays the title and post thumbnail.
AdultKing is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-17-2012, 03:47 PM   #3
AdultKing
Raise Your Weapon
 
AdultKing's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
PHP Code:
<?php global $post;
$rand_posts get_posts('numberposts=6&orderby=rand');
foreach( 
$rand_posts as $post ) : ?>
<a href="<?php the_permalink($page->ID?>" title="<?php the_title(); ?>">
<?php echo get_the_post_thumbnail($post->ID'thumbnail'); ?></a>

<?php endforeach; ?>
Another snippet that should help.
AdultKing is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2012, 02:11 AM   #4
Darrell
Confirmed User
 
Join Date: Feb 2003
Location: In bed asleep
Posts: 803
Thanks for replying AdultKing but I should have mentioned I'm using the Thesis theme. I will try your php code anyway.

Thanks
Darrell is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2012, 02:37 AM   #5
jimmycooper
Confirmed User
 
jimmycooper's Avatar
 
Industry Role:
Join Date: May 2010
Location: Manhattan
Posts: 4,016
Lol. I was about to tell you to click on my sig and look for the thesis banner. If you can't figure it out, email to remind me in the morning and I'll show you how to do it on thesis.
__________________

jimmycooper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2012, 03:14 AM   #6
AdultKing
Raise Your Weapon
 
AdultKing's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
Quote:
Originally Posted by Darrell View Post
Thanks for replying AdultKing but I should have mentioned I'm using the Thesis theme. I will try your php code anyway.

Thanks
The code will work with Thesis, simply use a hook at the appropriate position and include the code.
AdultKing is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2012, 04:48 AM   #7
DamageX
Marketing & Strategy
 
DamageX's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: Former nomad
Posts: 14,293
Quote:
Originally Posted by AdultKing View Post
The code will work with Thesis, simply use a hook at the appropriate position and include the code.
You forgot to post your affiliate code for Thesis. Here you go: http://oodl.net/thesis.
__________________
Whitehat is for chumps

If you don't do it, somebody else will - true story!
DamageX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2012, 05:51 AM   #8
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,363
never liked thesis myself
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2012, 05:59 AM   #9
OneHungLo
So Fucking Banned
 
Industry Role:
Join Date: May 2001
Location: Your mom's front hole
Posts: 40,906
Quote:
Originally Posted by DamageX View Post
You forgot to post your affiliate code for Thesis. Here you go: http://oodl.net/thesis.

OneHungLo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2012, 07:50 AM   #10
DamageX
Marketing & Strategy
 
DamageX's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: Former nomad
Posts: 14,293
Quote:
Originally Posted by fris View Post
never liked thesis myself
It's a piece of shit. You can do the same things it does, at least in terms of SEO, with plain WP and Wordpress SEO plugin. The only reason it's so popular is because they have an affiliate program and people like AdultKing hype the fuck out of it just to make a few bucks in affiliate commission.
__________________
Whitehat is for chumps

If you don't do it, somebody else will - true story!
DamageX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2012, 07:58 AM   #11
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,363
Quote:
Originally Posted by DamageX View Post
It's a piece of shit. You can do the same things it does, at least in terms of SEO, with plain WP and Wordpress SEO plugin. The only reason it's so popular is because they have an affiliate program and people like AdultKing hype the fuck out of it just to make a few bucks in affiliate commission.
thesis and headway are easy to use backend wise, but if you wanna do any custom code for these frameworks, you really have to know the code of the framework itself since it uses its own hooks.

if you are just using it for the backend its great, but writing custom code for these frameworks are more of a pain than its worth.

genesis by studiopress is a decent framework. also bolts i been using lately and its nice.

http://themejack.net/bolts/
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2012, 08:19 AM   #12
barcodes
Confirmed User
 
barcodes's Avatar
 
Industry Role:
Join Date: Mar 2011
Location: Florida
Posts: 2,040
I don't mean to hi-jack the thread but I do have a question.

I recently started using wp, maybe a few months ago.
The way I have been doing it was coming up with a design in photoshop and building the pages manually.

I initially used this as a reference to get started:
http://www.wpdesigner.com/2007/02/19...ss-themes-huh/

So should I just be buying themes instead of doing it myself? Are you limited in any way when you use these themes?
Like is the code so clusterfucked because of all the extra stuff, is it hard to work your way around it? I am used to skinning stuff like magento or mura cms so I am assuming it shouldn't be too difficult but I don't want to but a membership somewhere or a couple hundred bucks and spend more time on it than I would myself for free.

I honestly thought most of the wp designers were building their own sites from scratch as well.
Something else to look into I suppose, lol.

Again, sorry to hijack, I sincerely hope you find a quick and easy solution to your theme issue.
barcodes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2012, 08:27 AM   #13
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Edit - Ignore the following. I just saw the random part.

A static front page, eh? You don't need no special theme for a static page.

File menu - Save As.
Edit it.
Save as index.html

In .htaccess:

DirectoryIndex index.html index.php
RewriteEngine On
RewriteRule index.php$ index.html

Last edited by raymor; 01-18-2012 at 08:28 AM..
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2012, 08:36 AM   #14
barcodes
Confirmed User
 
barcodes's Avatar
 
Industry Role:
Join Date: Mar 2011
Location: Florida
Posts: 2,040
Quote:
Originally Posted by raymor View Post
Edit - Ignore the following. I just saw the random part.

A static front page, eh? You don't need no special theme for a static page.

File menu - Save As.
Edit it.
Save as index.html

In .htaccess:

DirectoryIndex index.html index.php
RewriteEngine On
RewriteRule index.php$ index.html
I would say maybe make like default.php for your static home page and do what raymor says htaccess wise to point to it.

Maybe you can do something like this on default.php for the random links.
http://www.designplace.org/scripts.php?page=1&c_id=13

best of luck

Last edited by barcodes; 01-18-2012 at 08:37 AM..
barcodes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2012, 10:08 AM   #15
DamageX
Marketing & Strategy
 
DamageX's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: Former nomad
Posts: 14,293
BTW, all the solutions to the problem posted in this thread suck donkey balls and are over-complicating things.

Log into your Wordpress, go to pages and create a new page, put in it everything that you want displayed as your front page.

Then go to Settings -> Reading -> Front page displays and select the option that says "A static page". Scroll down in the menu below and select the page you just created. Done.
__________________
Whitehat is for chumps

If you don't do it, somebody else will - true story!
DamageX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2012, 10:29 AM   #16
Why
MFBA
 
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
thesis, lol.

the php code shown above will work but is likely to show duplicates. and DamageX is correct on easiest way to show the page on front, but i think the OP said he knew how to do that in the OP.
Why is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-18-2012, 01:28 PM   #17
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,363
ya no need for extra code when you can select your page
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.