Archived

This topic is now archived and is closed to further replies.

  • 0

How to add classifieds on the the home page ?


Question

Posted · Report post

Hello,

 

I use pagelines framework on a web site i am building. I use the Base Theme. I configure a page like a home page that i am customizing.

Now i have installed a classifieds plugin and i've already created the wp_query to fetch classified from database. But i don't know the file in i have to add my code to display classifieds on my home page ?

 

Could you help me please ?

 

Thanks

Share this post


Link to post
Share on other sites

8 answers to this question

Posted · Report post

Hello Pracede 

 

How does your plugin display the content? Does it use a short-code? 

 

 What is the name of the plugin?

Share this post


Link to post
Share on other sites

Posted · Report post

I want to add this query $wp_query->query('post_type=classifieds&posts_per_page=8'.'&paged='.$paged); on a page using a shortcode. Which shortcod fit ?

 

is-it possible to query just classifieds from one category ? example: category number 2

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

 

Your plugin actually does use shortcodes for ads.  Please read its documentation. 

 

I'm unclear where you want to place these ads, but according to the plugin's Usage tab, all you need to do is create a page and add the shortcode.

 

You can get further support on the plugin's use and implementation from the plugin developer.  Unfortunately, we cannot provide support for third-party software.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi One Smart Egg,

 

Thanks for your response. I don't need a support for the plugin. What i want to know is :

- How to modify my page template to add a query ?

 

When we use wordpress theme, we can modify file such page.php or page-12.php to add a query and display some content from the database.

 

My question is how to the same thing with pagelines framework and base theme ? Wich file i have to modify ?

 

Thanks

Share this post


Link to post
Share on other sites

Posted · Report post

A query wouldn't be added to a template.  You'd have to write specific code for it into a hook. That's a custom coding issue, which is why I referred you back to your developer for the proper use.  He or she may have a way to use a shortcode for that custom query.

Share this post


Link to post
Share on other sites

Posted · Report post

I have the question to the theme developper and i am waiting response. Do you have a how to manual or an example for creating a hook in pagelines ?

Share this post


Link to post
Share on other sites

Posted · Report post

Yes:  http://support.pagelines.me/docs/customization/hooks/

 

You will want the PageLines Customize plugin, found at Dashboard > PageLines > Store > Plugins  > Top Free.  The docs for that are here: http://support.pagelines.me/docs/plugins/pagelines-customization/

 

Here's some info on Customizing your site:  http://support.pagelines.me/docs/customization/customization-methods/

 

You will probably need the Action Map Plugin, which shows you where things are located.  It too, is free in our Store.  Here's the docs for Action Map: http://support.pagelines.me/docs/plugins/action-map/

Share this post


Link to post
Share on other sites