Featured Content Gallery | WordPress Plugin | iePlexus

[SOLVED] Custom Links

Customizing the FCG plugin and more

[SOLVED] Custom Links

PostBy Shiddo on Wed Jun 10, 2009 2:43 am

Hi,
I want to ask if there is any way to create an option for featured gallery to use custom link instead of permalink. For example to use another custom field: "featlink" etc.

Why? I working on little blog network. I have one main blog that works as a portal to others (each own category of topics). I would like to use featured content gallery to display featured posts from all subblogs.

So my idea was to create like 5-10 pages on main blog, (Featured-1, Featured-2 etc...) and input their IDs into FCG Selection. Those will be used only as forms for FCG. When required, I would just change Title and text (or use custom) and link image+thumb (all that already included FCG).
But, on top I would input custom link. In result, FCG would be showing data from "Featured-1", "Featured-2" etc, but on click it would open post on subblog (or basicly any other site herfed - for. expl friends blog/post).

The problem is... it is using permalink for post/page ID. And it seems other functions (images) are somehow bound to this permalink.

I thought it will be just and easy fix, and went to gallery.php to change this
Code: Select all
<a href="<?php the_permalink() ?>" title="Read More" class="open"></a>

on line 44 and 69.

I went stright for "echoing" my new custom field with desired link. Failed... To try, if it is not just a custom field issue, I hardcoded the link "http://www..." in herf. Same result... Once I change the permalink for anything else, FCG ends up on loading chain... displaying only titles and text.

Any tips or suggestions what else needs to be changed ? (if it is possible to be done at all)

1) exchange permalink for customfield
2) set some "if there is a customfield then use it, else use permalink" etc thing ^^

I have the vision, but lack at coding ^^;
Thx for any info.


EDIT: Solved - found here on formus. Searched for custom links not prefered url. Sry
Solution here
Shiddo
 
Posts: 3
Joined: Wed Jun 10, 2009 2:04 am

Re: [SOLVED] Custom Links

Thank you for using the Featured Content Gallery Forum
 

Return to Plugin Settings, Features, and Options

Who is online

Users browsing this forum: No registered users and 0 guests

cron