GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tech Wordpress question (https://gfy.com/showthread.php?t=1195067)

druid66 04-30-2016 04:09 AM

Wordpress question
 
Hey Guys,
I got thumbs leading to posts (in pinterest style), but what if i want to add simple gallery from time to time and have thumb to lead directly to it instead to post with content, how to do this?
any idea?

(not to mention problem with featured image which is actually a thumb on the main page).

Manfap 04-30-2016 04:42 AM

create a custom post type, and a custom field. in the custom field put your gallery url
edit the code pulled by the custom post type in the loop. call the customfield instead of the content.

druid66 04-30-2016 04:49 AM

i do understand what you wrote however i never done this so i need to process it and figure how to make this custom post and how to make loop.

thank you, i'll work on it.

just a punk 04-30-2016 06:40 AM

To do so you will need to alter the main loop of your index template to make it display not only post links (thumbs linked to posts) but also thumbs linked to the large images.

HowlingWulf 04-30-2016 06:47 AM

I would keep it simple.

Your theme has code to show the thumb linking to the post.

Before that code, add a check for the post custom meta field for an external URL.
If it exists, link the thumb to that url. If not, link the thumb to the post normally. Easy peasy.

Colmike9 04-30-2016 06:49 AM

https://wordpress.org/plugins/page-links-to/

For the post image, do you have a custom URL option when you click edit on the image? I do.

just a punk 04-30-2016 07:08 AM

Quote:

Originally Posted by HowlingWulf (Post 20868185)
I would keep it simple.

Your theme has code to show the thumb linking to the post.

Before that code, add a check for the post custom meta field for an external URL.
If it exists, link the thumb to that url. If not, link the thumb to the post normally. Easy peasy.

Exactly :2 cents:

druid66 04-30-2016 07:14 AM

Quote:

Originally Posted by Colmike7 (Post 20868188)
https://wordpress.org/plugins/page-links-to/

For the post image, do you have a custom URL option when you click edit on the image? I do.

thank you all guys, i've used Colmike solution cuz it was fastest and does exactly what i needed.

rogueteens 04-30-2016 07:38 AM

one way of doing it which occurred to me might be to install an advert plugin, make some thumbs and have them lead to the gallery via those adverts?

druid66 04-30-2016 07:44 AM

with Colmike plugin it's fast and non brain solution: you paste gallery url under post in the new field provided by plugin, you simply add featured image as usually, wrote title as usually for post and press "post" (or schedule) all i wanted and save me time cracking wp code for half a day (usualy takes me so long..).

using external plugin is never perfect solution, better is to modify code for your need but again: i have no time for this now.

xXXtesy10 04-30-2016 09:17 AM

Quote:

Originally Posted by druid66 (Post 20868260)
with Colmike plugin it's fast and non brain solution: you paste gallery url under post in the new field provided by plugin, you simply add featured image as usually, wrote title as usually for post and press "post" (or schedule) all i wanted and save me time cracking wp code for half a day (usualy takes me so long..).

using external plugin is never perfect solution, better is to modify code for your need but again: i have no time for this now.

good choice and see sig!

just a punk 04-30-2016 10:16 AM

Quote:

Originally Posted by xXXtesy10 (Post 20868419)
good choice and see sig!

Your sig is worthless on GFY, my little dirty friend, because:
  1. Your sig. has no link to CyberSEO « #1 professional content curation plugin for WordPress since 2006.
  2. The OP is already my customer, so he like many here, knows my software a little bit better than you, Dalit :winkwink:
P.S. As about (1). I will pay you $200 if you put a link to my site into your sig. for a year. I believe this money is 10x more than enough to feed the whole your family during this time.


All times are GMT -7. The time now is 02:35 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc