مجرد محاوله استخدم هذه الدالة:
\[code\]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/\*\*
\* Get the last active link in the forum.
\*
\* @since 1.0
\*/
function ArWP\_get\_forum\_last\_active\_link ( $forum\_id = 0 ) {
$forum\_id = bbp\_get\_forum\_id ( $forum\_id );
$active\_id = bbp\_get\_forum\_last\_active\_id ( $forum\_id );
if ( empty ( $active\_id ) )
$active\_id = bbp\_get\_forum\_last\_reply\_id ( $forum\_id );
if ( empty ( $active\_id ) )
$active\_id = bbp\_get\_forum\_last\_topic\_id ( $forum\_id );
if ( bbp\_is\_topic( $active\_id ) ) {
$link = apply\_filters( 'bbp\_get\_forum\_last\_topic\_permalink', bbp\_get\_topic\_permalink( $active\_id ), $forum\_id );
$title = apply\_filters( 'bbp\_get\_forum\_last\_topic\_title', bbp\_get\_topic\_title( $active\_id ), $forum\_id );
} elseif ( bbp\_is\_reply( $active\_id ) ) {
$link = apply\_filters( 'bbp\_get\_forum\_last\_reply\_permalink', bbp\_get\_reply\_url( $active\_id ), $forum\_id );
$title = apply\_filters( 'bbp\_get\_forum\_last\_reply\_title', bbp\_get\_reply\_title( $active\_id ) , $forum\_id );
} // end if
if ( empty ( $link ) ) {
$anchor = \_\_( 'No Topics', 'bbpress' );
} else {
$anchor = '<a>' . $title . '</a>';
} // end if
return apply\_filters( 'ArWP\_get\_forum\_freshness\_link', $anchor, $forum\_id );
} // end ArWP\_get\_forum\_freshness\_link()\[/code\]
ويمكنك ايضاً بحيله بسيطه صنع خريطه ووضع اسماء الاقسام بروابطها مما يسهل وصول الزائر للقسم
مثال
الدعم الفني
ترقيه المدونه