How can I locate the single buddypress forum post template? [closed]

Even if I’m also not quite sure if this question is related to bbPress or BuddyPress, locating (plugin-) template files might always be the same: An easy approach might be to call the body_class() in a file which is definitely active (like header.php). The output will look something like this: class=”forum-archive bbpress archive post-type-archive post-type-archive-forum … Read more

How can add custom commands in post-new.php in wordpress

You could run this code inside of an action on transition post status. Any time a post is published you could run this code to generate and upload the HTML to your FTP server. function post_published( $new_status, $old_status, $post ) { if ( $new_status == ‘publish’ ) { // Build your file and upload it … Read more

Dynamic archive of posts by date

Please note that I have now resolved this issue. For whomever is interested, please find my code below (I’ve included everything to a shortcode to facilitate adding it anywhere I want): function archiveday() { $x=1; do { $result = date(‘l jS F Y’,strtotime(“-$x days”)); $year= date(‘Y’,strtotime(“-$x days”)); $month= date(‘n’,strtotime(“-$x days”)); $day= date(‘j’,strtotime(“-$x days”)); $my_query2 = … Read more

How to show video from post on the all posts page?

For a post format, you can refer to this link https://codex.wordpress.org/Post_Formats To show videos on posts page,just modify the excerpt filter and display the excerpt. Add following code in functions.php function custom_wp_trim_excerpt($text) { $raw_excerpt = $text; if ( ” == $text ) { $text = get_the_content(”); // Original Content $text = strip_shortcodes($text); // Minus Shortcodes … Read more

Search doesn’t display posts with images

What you’ve provided is the displayed code on the website. You’ll need to edit the single.php and make it match the archive/index page of your theme. search the index the code you want, place it in your post single.php. Good luck and let me know if you have other questions.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)