Jump to content
Sign in to follow this  
mightaswell

Linking to PLs default custom post types.

Recommended Posts

mightaswell

This may be a real newbie question, and more of a WP question so I apologize in advance...

 

How can I link to a pagelines custom post type.. for example a "box".

 

I have created some "boxes" to hold the name/photo/bio of some speakers at an event. On a separate page I will have an agenda that lists a topic and a speaker. I would LOVE to be able to make the speakers name a link and open the "box" containing the speaker info in a modal. (as well as something similar for the topic abstracts).

 

Is this possible?

 

Might.

 

 

Share this post


Link to post
Share on other sites
greenfly

Do you have a link to your site and the box? 


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
mightaswell

Hi Martin,

 

The site is still under development, but I have a page here: http://compass.cascademicrotech.com/conference/speakers/ that displays the speaker boxes.

 

What I would like to be able to do is have another page: http://compass.cascademicrotech.com/conference/agenda/

 

where I can open a modal that pulls in the specific "box" post for a speaker (such as speaker 1)

 

And then similarly for the "session topics" allowing the visitor to remain on agenda page and see the content...

Share this post


Link to post
Share on other sites
Rob

Hi,

 

You need to use old HTML for this.

 

So, inside your box, your first line will be an anchor.

<a name="box4"></a> 

Now, when you're on a different page or site, you create a link like:

<a href="http://www.mysite.com#box4">My WP Boxes</a>

When someone clicks the link, they will be taken directly to that box.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
mightaswell

Unfortunately that defeats the UX I am going for.. I really don't want the user to leave the agenda page to view the speaker info. 

 

The more I think about this, the more I suppose its a lot of custom code. 

 

Perhaps a PL developer could create a plugin called "box pop" that would allow a shortcode to open it in a modal... I'd buy that...

Share this post


Link to post
Share on other sites
James B

Hi there, we don't get the premium plugins for support purposes, but anyloop - http://www.pagelines.com/store/sections/anyloop/ seems to suggest that you can call the cpt by using a shortcode. You'd need to check with the developer prior to making a decision to purchase, but if it did do that, then you could put the shortcode for the cpt into the modal.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
mightaswell

Thanks James, I'll take a look, not sure if anyloop will work as it seems to be a section... 

Share this post


Link to post
Share on other sites
James B

Hi, yes it is a section, but it says it also has a built in option to use a shortcode for widgets in the description. A shortcode used in a widget should also work in a contentbox or modal hopefully. The developer would be able to say for sure though.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×