Jump to content
pracede

How to add classifieds on the the home page ?

Recommended Posts

pracede    0
pracede

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
greenfly    230
greenfly

Hello Pracede 

 

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

 

 What is the name of the plugin?


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
pracede    0
pracede

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
Rob    547
Rob

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.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
pracede    0
pracede

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
Rob    547
Rob

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.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
pracede    0
pracede

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
Rob    547
Rob

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/


Former PageLines Moderator, Food Expert and Raconteur

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


  • Similar Content

    • janpeeters
      By janpeeters+
      Hi all,
      I was totally excited to find out about 'CSS Hero' (http://www.csshero.org) I read about it in the compatible plugins section of the PL5 docs (http://www.pagelines.com/resources/compatible-plugins) For me it's a great way to more easily customize my sites because I'm not a CSS pro.
      I'm wondering about one thing though… Does anyone know if using this will result in a heavy penalty on page loading speeds? Would love to start using it but only if it doesn't cost too much in terms of speed.
      Thanks, Jan
    • abuzzelli
      By abuzzelli+
      I need the modal popup background to be solid and I can't get the css to work. Not sure what to do. Here's the page: http://bellissimoplasticsurgery.com/breast-augmentation-test-page/
    • evasnijders
      By evasnijders
      Dear fellow forum members,
      It has been months, if not years, since I got the latest DMS version. And I haven't been able to get myself to install it on my blog...
      A few months ago I took on a new job and I now know for sure I will never get to it.
      So, my question: is there anyone out there who is experienced with DMS and would be willing to do this for me.
      In all honesty, I will need help with everything, from rethinking the content (structure), to deciding on illustrations and colours. 
      I am though, willing to pay for this.
      Thanks in advance for your kind answers.
      Eva
      www.evasnijders.com
       
       
       
    • abuzzelli
      By abuzzelli+
      Trying to adjust the position of the background image on http://churchofwolves.com/. I need the wolf background to move over to the left on mobile versions so it can be seen. Here's the code I'm using and it's not working. I've tried a bunch of different things. Getting frustrated. Any advice?
      @media (max-width: 768px) { .home .site-wrap{ background: url(http://churchofwolves.com/wp-content/uploads/2015/06/Church-of-Wolves-bkgd1.jpg); -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; background-position: 100% 0%; } }  
    • kellid
      By kellid
      Hello!
       
      Wondering how I can have only 4 posts show in the Masonic section?  I've tried going by category but it still adds an additional post.  Any help is greatly appreciated :) Thanks!
       
      Kelli D
      SolarConnect.Us
×