If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
October 31, 2011 at 8:30 pm #6707
Hi, i want to know if is possible to create a a Widget or Short Code widget where a can print a random portofolio items.
You can see my idea on http://www.fjc.dm-studio.net/. I have created a custom Template, and then i created a Text Area where i used and avia_portofoliobox widget. I want to put a random categorie there instead just one.
Thank you for your helpNovember 1, 2011 at 11:26 am #55175
open up brightboxframeworkphpclass-framework-widgets.php and replace:
$this->avia_new_query = ''; //set a custom query here
$this->avia_new_query = array( "posts_per_page"=>$count, "orderby"=>"rand", 'tax_query' => array(
array( 'taxonomy' => $this->avia_term,
'field' => 'id',
'terms' => explode(',', $cat),
'operator' => 'IN')
);November 1, 2011 at 2:46 pm #55176
Thank you, it work, but may be i could not explain what i’m looking for… know the widget display a random portofolio item, but always the same, that i actually need is if i reload the page, the portofolio items change.
Than you for your help
DMNovember 2, 2011 at 6:18 am #55177
the “orderby”=>”rand” shouldselect a new post each time you reload the page. Maybe you’ve activated page content caching (W3TC, Super Cache) and you’re viewing a “static” page.November 2, 2011 at 4:54 pm #55178
Thank you Dude, I was using the W3TC, but i just erased the plugin, but i still have the same problem.November 11, 2011 at 5:16 pm #55179
Hi, Dude, I was checking again, and i found that i did not use the code, because the code doesn’t work. When i’m using the code, the widgets i’m using in my home. does not display the portofolio entries at all. Please help me again, i want to know what i’m doing wrong.
Thank you-November 16, 2011 at 10:58 pm #55180
Hey Dude, I’m still having the same problem, the portfolio doesn’t display in random post in the widget i put in the home http://fjc.dm-studio.net
When i use the code you give, the widget doesn’t display any item. I’m really need your help right now, because i have to put the site on line next week. i really appreciate you help.
Thank youNovember 18, 2011 at 7:59 am #55183November 21, 2011 at 8:20 pm #55184
Still having the same problem, the site is now online, on http://www.filarmonicajovendecolombia.org and the random portfolio doesn’t work.
I changed the code, the warning is no longer on the page but, the portfolio random doesn’t work. Rigth now i’m usin differents sub categories of the portfolio in order to show different people, but please i you can help me with that you will be one of my favorites persons.
Thank youNovember 28, 2011 at 1:42 pm #55185
Hi Dude, any suggestions for the random portfolio? I’m still doing this by hand every day…. but i really need this…. can you help me again, please?November 28, 2011 at 3:46 pm #55186
I’m sorry but I don’t know a quick solution for the problem. It’s for sure possible but would require a major rewrite of the query and that’s a time intensive task (which is beyond the scope of my support job).November 28, 2011 at 11:53 pm #55187November 29, 2011 at 10:23 am #55188
The topic ‘Brightbox Random Portofolio’ is closed to new replies.