alex46
Forum Replies Created
-
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Auto featured imageSOLVED
I use that function
function auto_featured_image() {
global $post;if (!has_post_thumbnail($post->ID)) {
$attached_image = get_children( “post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=1” );if ($attached_image) {
foreach ($attached_image as $attachment_id => $attachment) {
set_post_thumbnail($post->ID, $attachment_id);
}
}
}
}Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] search form with dateI add this in form_search (in defaults.php)
,array(
“name” => “price_desc”,
“type” => “adverts_field_radio”,
“order” => 20,
“label” => __( “PRE?O”, “adverts” ),
“options” => array(“value”=>”DESC”, “text”=>”Descendente”),“meta” => array(
“search_group” => “visible”,
“search_type” => “half”
)
),array(
“name” => “price_asc”,
“type” => “adverts_field_radio”,
“order” => 20,
“label” => __( “PRE?O”, “adverts” ),
“options” => array(“value”=>”ASC”, “text”=>”Ascendente”),“meta” => array(
“search_group” => “visible”,
“search_type” => “half”
)Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] search form with dateCan you could help me please? I’m trying without success to add Data and Price filter to search form..
1) I add in defaults.php in search form, new 2 arrays price_desc and price_asc..
2o) in shortcode.php i add
if($price_desc) {$meta[] = array(‘key’=>’adverts_price’,
‘orderby’ =>’date’ ,
‘order’=> ‘DESC’);
}if($price_asc) {$meta[] = array(‘key’=>’adverts_price’,
‘orderby’ =>’date’,
‘order’=> ‘ASC’);
}in form_search show two radio options but query don’t do correctly…
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Problem with autonumerici have 2 decimals… and in settings of autonumeric i have 2 decimals too..
i remove function from single and list and everything okForum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Problem with autonumericRemove adverts_price from single and list-item.php and i get value user input
it’s everything ok , thanks anywayForum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] slug of paid advertsit’s ok when adding image it’s need to make it featured, otherwise essential grid don’t use any image of post.
I put a message in form to select featured imagethaks and sorry for dumb question
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] slug of paid advertsAnyone can help ?
Forum: Plugins
In reply to: [WordPress Social Login] Portuguese translation updatedCerto muito obrigado
Forum: Plugins
In reply to: [WordPress Social Login] Portuguese translation updatedObrigado
Neste caso basta só colocar na pasta os ficheiros?cumps
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] slug of paid advertsforget Greg i have linked that to my grid.
My problem now is: i need to pass to my essential grid adverts images.Can you help me how i get adverts images? Only image[0] it’s enough
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] slug of paid advertsi think for paid adverts it’s: _is_featured
But i try to use photo upload for adverts and nothing…
I try adverts-field-gallery also try gallery …
adverts-upload-thumbnail and no one go to my grid in front page.I want push image used in adverts to put in grid created with essential grid.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Change the list view of ads to 1 column[adverts_list columns=”4″]
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Social sharing buttonsJetPack plugin have share option
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Advert Listingi want that too but if i change code give bug in listings
Forum: Plugins
In reply to: [Front End PM] Problem with Front end message plugin by GalfaroDon’t work, only show “CONTACT SELLER” and i click and don’t work.
I have 2 folders in Plugins: Front End PM and Front End Message
I copy all files from galfaro in github.