Forum Replies Created
-
AuthorPosts
-
This worked, thanks
//sort wp-recipe posts by date
function wpse_81939_post_types_admin_order( $wp_query ) {
if (is_admin()) {// Get the post type from the query
$post_type = $wp_query->query[‘post_type’];if ( $post_type == ‘posttypehere’) {
$wp_query->set(‘orderby’, ‘date’);
$wp_query->set(‘order’, ‘DESC’);
}
}
}
add_filter(‘pre_get_posts’, ‘wpse_81939_post_types_admin_order’);- This reply was modified 5 months, 2 weeks ago by finchkelsey.
Hi, that’s not a great solution then is it.
Why does this not work,
//sort posts by date
add_filter(‘avia_blog_post_query’, ‘avia_modify_post_grid_query_desc’);
function avia_modify_post_grid_query_desc( $query ) {
$query[‘orderby’] = ‘date’;
$query[‘order’] = ‘DESC’;
return $query;
}I would like to order our posts in wp-admin by newest, not alphabetical, this should be simple no?
The site is a multisite so you have to go to the top -My Sites -Network Admin -Themes – Appearance
I am not sure what was done which, I am hoping you will quickly be able to identify if some code was removed, which at this point I believe may have occured.
Thank you
Thank you
Please help fix our footer. At some point there was a conflict and it was ‘turned’ off. The child theme is set to display a page, I think the actual ‘footer’ code may have been deleted from a template page, can you take a look with credentials above pls.
Thank you kindly,
- This reply was modified 1 year ago by finchkelsey.
Ok, please remind me how to get a tag or category menu above the posts please on a bog page. Tag cloud or category menu, thank you.
Here is the link, thank you
Thanks,
This doesn’t seem to work. We had this issue q few months ago as well (see previous support question).
Thoughts?
ThanksHi Mike,
We have paid our developer a good amount of funds to determine what I already had. The issue is in the theme somewhere, please actually take a look this time. Please see his notes below in the private section.Hello, thank you. The error only occurs in child theme.
Hi Mike,
We are using a page for footer.
The issue does not exist when I select widgets.I cannot determine anything in the child theme header that requires it to be active so I have turned it off.
When the site uses the updated parent theme header we get the duplication of recipe in the footer on recipe pages only. The footer displays properly on all other pages.
I have placed the section of code below from the header.php in the enfold theme that causes the duplication.
Any help you could give me to understand what file I may need to edit or if any of this header code can be edited would be greatly appreciated.
Thank you
Something in this top section of the new header code is causing the conflict, please advise.
Thank you, this is helpful.
The recipes are inserted using the pro plugin Cooked, not ACF.
I have fixed the duplication of recipes by replacing files in the child theme, could you please guide me as to what is causing the footer to be ‘missing’ now on all pages.
I am learning, thank you for you help.
Hey Mike,
I’m not sure on all of them, we have a few contributors and some optimizations. I am not sure which files these use, sorry.When I toggle between the child header and the parent header the problem switches as well. So I assume the problem is there. Could you please look at the two header files for me.
If I choose page for footer on either option the conflict occurs, it is not present when widgets are used.
Thank you
Thank you
If you click on Alberta say, it opens. Then click on Saskatchewan, the content is blank.
Please advise as this back and forth is taking way too long.
Thank you
Hi!
Sorry to bug, but if we can’t find a solution we need to move on. I did reply to the email in my inbox a few days ago, so that was missed.
Thanks
Hi,
If I so this it becomes …active-active
Could it have something to do with the way thr map loads?
Please advise, thank you
Hi Mike,
See the link below for a mock up.
The agency has laid out a feature image/video, title, text and then a ‘button’ to expand the content. So I am using the accordion only once per section. So multiple sections do not equal one accordion, but many accordion on the page with one tab.
Also they have mocked up a full width image that when clicked plays a video. I cannot find a ALB solution for this either. gerrr. I have tried the video player and now the fill width slider but the video plays onload no matter what settings I add..
?rel=0&autoplay=0&iframe=true&showinfo=0
So now I have the two issues with this pretty simple ask from the agency. Please advise..
The .tag-sold is a post tag named ‘sold’ applied to the tags.
I’m trying to target the post that has been tagged with ‘sold’ so that all a user has to do is tag the post ‘sold’, and the ‘sold flag’ will display.Targeting the tag, ‘sold’, using .tag-sold is working on the image in the gallery. I am unable to find the correct css path to the feature image of the post, when its using the blog grid display from the alb.
The css you suggest requires coding and targets per page, this would not work in the use case we are looking for.
Can you help me with the css path…thank you
Thank you
Hey thanks for the support, I think I didn’t explain myself well.
I was able to target a div using the post tag, this applies a SOLD ribbon to the image (first image of the gallery)
I am looking to target the feature image of this post inside the blog posts grid with the same SOLD ribbon also using the post tag. I have been unsuccessful.
This works – .tag-sold .slide-image::before {
content: url(‘//carfarmers.com/wp-content/uploads/2022/06/sold-small.png’);
max-width:40px!important;
max-height:40px!important;
z-index:1;
position: absolute;
top: 60px;
left: 45px;
}This does not – .tag-sold #ngg-image-1::before {
content: url(‘//carfarmers.com/wp-content/uploads/2022/06/sold-small.png’);
max-width:40px!important;
max-height:40px!important;
z-index:1;
position: absolute;
top: 60px;
left: 45px;
}See below for details
Is there an update to this, I’ve just tried with the current version of Enfold an I am still unable to add shortcodes to the portfolio excerpt? Thanks
- This reply was modified 2 years, 6 months ago by finchkelsey.
Hi Ismael,
I need an adjustment made to my css specifically not the general ‘how’. I appreciate your moderation but if you could view the link and then answer the questions that would be appreciated.
Simply adjusting the height is not working and the button is blowing out..I am unable to fix it
- This reply was modified 2 years, 7 months ago by finchkelsey.
Thank you, this is working. Can you advise on the height of the button now…thank you
Hi, that function is not at all what the client has asked for. Did you look at what we currently have?
Please advise on a solution that looks as it is now, but the image is clickable.
Thank you, this is urgent.
Hi thanks,
It should be this but it doesn’t work, so I came here to see what I am missing. I have added this css and it doesn’t work.
I have the gif in a text container in a basic image tag all in a full width section.
Any other suggestions please!
Thank you
Apologies, it is visible on mobile screens only, please adjust your screen view to view it.
Thank you
-
AuthorPosts