vikramster
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form DB] Remove entries of deleted postsThanks for the quick reply, Michael. Is there a way to do it by modifying the code? If you could point me to the relevant file, I can take it from there.
Forum: Themes and Templates
In reply to: [Pictorico] Sticky post not coming at the topHi Kathryin,
I think Pictorico supports “Featured Posts”: These posts are displayed with different size at the top. But I needed to have few posts to be always shown at the top of the website, even if they were added later, but their formatting should be same as other posts.
I couldn’t find any elegant solution to do that. Finally, I did my own coding as below in index.php:
<?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php /* Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'content', 'sticky' ); ?> <?php endwhile; ?> <!-----------------Vikram: Start changes -------------------------------> <?php while ( have_posts() ) : the_post(); ?> <?php /* Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'content', 'home' ); ?> <?php endwhile; ?>
This solved the problem, but at the cost of tweaking the child theme. I don’t have any other query as it has been resolved, but please let me know if there is a more elegant way to achieve the same.
Thanks,
VikramForum: Themes and Templates
In reply to: [Pictorico] Sticky post not coming at the topHi, so far I have tried so much:
<?php
/* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( ‘content’, ‘sticky’ );
get_template_part( ‘content’, ‘home’ );
?>Where content-sticky.php displays only those posts with sticky property on. And content.php displays posts with sticky property off. But the result is the same. ie, the sticky posts are not coming at the top. Is there anything I am missing?
Thanks!
Hi, last question. By customization, do you mean I need to modify the code within WP User Frontend plugin? Thanks!
Hi, sorry for not being clear last time.
I am using “WP User Frontend” (WPUF) to add posts from front end. When a user adds a post through WPUF, he is asked for title, featured image, content, etc.
My question is, can I also ask the user to specify if the post can be “sticky” when adding a post in this way? i.e., I am looking for a way to add “Is sticky post” checkbox in the “WP User Frontend” form.
Thank you.
thank you, but I wanted to know if a post can be done sticky through front end… through WPUF dashboard, or while adding post through WPUF.
Hi, thanks! I am aware of that. I wanted to know, if there is a way for admins to edit other’s posts through WordPress User Frontend Editor plugin.
Forum: Themes and Templates
In reply to: [Pictorico] Bringing back the menu of all the post categoriesHi Kathryn, here is the link:
https://manpowerinusa.com/wordpress/wpv2/As you can see, the top menu has been removed, and I am not able bring it back.
Forum: Themes and Templates
In reply to: [Pictorico] Add a logout link at top-right sideThanks, Kathryin.
I know about the logout functionality, but was mainly looking for help regarding the positioning of “logout” link on top right corner, at the same line as the menu, so that even if the browser is resized, the menu item gets adjusted accordingly.
Forum: Plugins
In reply to: [Firelight Lightbox] Easy Fancybox doesn't workThank you so much! In my case too call to wp_footer() was commented out. Easy Fancybox working as expected now.