cherry framework wordpress where are the shortcodes? - php

I'm customizing a site built using cherry framework for Wordpress...
My "issue" is regarding a shortcode that generates a list of the recent posts of a x category... this is a built-in thingy in the theme...
What I need to to change the behaviour of the featured image... on click, I dont want the prettyphoto lightbox, I need the link to the post to be there instead...
I found right code to edit for the default Portfolio-book, but not for the shortcode.. i cant get the right piece of code...
the name of the shortcode that generates the gallery is:
posts_grid columns
and the code I'm implementing:
[posts_grid columns="3" order_by="date" order="DESC" thumb_width="333px" thumb_height="333px" meta="yes" link="yes" link_text="Leer más" category="masters" custom_class="masteres-list"]
I have searched the whole PHP documents but cannot seem to find the right piece of code that makes this happen...
I expect somebody who knows the framework to give some light on it. thanks.

http://www.cherryframework.com/forums/topic/customizing-posts_grid/
Found the answer directly from the developer...

Related

How to add tag and category in a php CMS and then display them in posts?

I'm beginner at php. i'm building a simple CMS with php from scratch. i could build the CRUD part successfully but now i'm going to add tag and category to my posts. i tried my own ways but none of the worked!!
As you know tags and categories are linked to a page with related posts. for example if click on a tag/category "tech", it will refer you to a page with posts related to "tech" keyword.
I'm going to build somthing like what i just told but i don't really know how to do that. what i'm really confused about is how to find a way to know which tag/category belongs to which post! i searched a lot but everything is about WordPress!!!
could you please help me with some tutorial. i'd like to build my CMS with PROCEDURAL programming not OOP because i'm beginner!

Wordpress hook to add content under title or post status buttons on edit.php

I'm looking to add some content above the wp_list_table for a custom post type. I have custom bulk actions and filters but would like to add some further content to this header area. I cant seem to find a hook that will get me into the header. The only one I can seem to find is 'all_admin_notices' which is above the page title so not optimal.
Anywhere either below the title, below the post status buttons or even under the bulk action / filters will do.
Is this possible? If so what hook am I looking at?.
Image link below. Area highlighted in red is what I'm trying to achieve.
http://indi-media.com/stackoverflow/Example.jpg
Thanks Guys.
Turns out it probalby isnt possible without a hacky jquery approach or extending the wp table class which I'm not keen on doing. The only real way to do it is to construct the page and tables etc yourself.
Thanks for the pointers anyway guys.

Keep Google Search Appliance from indexing "latest posts" in Fancier Author Box plugin

Posted this on Wordpress.org's Support forum, and haven't heard anything. Hopefully someone here can help!
We use a Google Search Appliance to serve search results on our site, and have had our GSA indexing our WordPress.org blog content for a while. We're finding that some key searches are getting diluted due to keywords being included in blog titles within the Latest Posts area of the Fancier Author Box. I would like to add in the <!--googleoff:index--> and <!--googleon:index--> tags around either the DIV that is classed "ts-fab-text" or the UL that is classed "ts-fab-latest" to instruct the GSA not to index that content. Could you please advise which file I'd need to go into in the Editor to add this? I've looked through the files and cannot find this markup, but I'm also not a PHP developer, so may be overlooking it.
https://wordpress.org/plugins/fancier-author-box/
What you are looking for seems to be found at:
plugindirectory\includes\ts-fab-construct-tabs.php , line 127

Drupal Commerce - Load drupal variations images instead of a select box

I am not a beginner with Drupal, but I am a beginner with Drupal Commerce. I have used Ubercart since this project.
Actually, If I create a product display, and then a few variations under this product, Drupal Commerce automatically creates select box with titles of the other variations. This is quite useful for almost all the e-shops, but not for this one. I need to replace select box with titles with just images, on which customer will be able to click on, and select variation type just by image.
I think that there is almost all the functionality in drupal commerce kickstart which I am using right now. But I do not know how to achieve the result. I have already tried editing product view, but was not able to make it working. I have also searched through core modules of drupal commerce in code, because I think that there should be just an array function with result of titles, but did not found something like this yet. I have searched whole internet to search for solution but did not found anything useful.
In some threads peoples use to solve similar problems with for example colors, to give the ability for customers to see the color squares instead of color select box, this is achieved by module, which some of devs written. Maybe I can edit this module?
Also, I have never ever created a module, I am a bit lost in drupal codes, but tried it before.
Here are the attachments for better vision:
http://ofca.sk/temp/printscreen.png,
http://ofca.sk/temp/result.png
Any advice will be greatly appreciated; I just need to be pointed to the right direction,
You can achieve this feature, the same way than Commerce Kickstart v2 does: http://demo.commerceguys.com/ck/tops/drupal-commerce-hoodie - note the color selector at the right middle.
This is done using Commerce fancy attributes module which allows you to render color or image selectors that come from a taxonomy:
This module provides a "Rendered term" attribute mode, that shows the rendered term instead of a radio button (degrades to a normal radio button when JS is off) on the add to cart form.
You've got a video demo of this module with a step by step to configure in http://vimeo.com/44308580
Thank you for an advice, but I still had not been able to make it working with fancy attributes module. I used another way using taxonomy and a few views, which done almost the same.
But I still think, It is achievable by Fancy Attributes.
Thank you again
I have created a module for this case: https://www.drupal.org/project/commerce_options_as_images
I use it on my projects.

best approaches in designing for wordpress a theme, need some advice

I'll be building a Wordpress theme and would be needing some advice in implementing it. here's the outline of my design. I will using 960.gs for the css layout.
Now my worries is what approach will i be using to the services(1,2,3...)? Will I use widget fort hat? Those boxes should be easy to maintain and update. (I've been a Joomla user so, So if I had code it in joomla I had used module for that approach. Is there a similar approach to Wordpress? that you can easily turn on/off the boxes? )
How can I change the look for each page? Some services will not be render in some pages (example, service 1-4 will not be avialabe for 'about page')
Thanks! :)
Download Free ‘Starkers’ Wordpress theme at Here
and following the instructions from Chris Coyer of CSS Tricks at Here
This really did help me. The screen cast from Chris is a three part series and you would love it.
Update One:
After you do this. I would advice you to get free themes online and see how things are done in different templates. I will help you improve a great deal.
Update Two:
To prevent some widgets from showing on different pages, you would to remove the function that creates that widget from that particular template. Every widget is like a plugin and a function is used to render it on screen.
Hope this helps.

Categories