• Vi har ett antal wordpress sidor med kommentar funktionen aktiverad
    kommentaren har godkänts men sidan visar bara typ 2 comments
    när man klicker på ikonen

    vesas 2 Responses to Is this the end off Arial Panorama in Sweden ❓
    även egna kommentarer visas inte 🤢
    vi har har ett Atister tema och har provat standad tema men tyvärr med samma problem

    • Detta ämne redigerades för 1 år, 10 månader sedan av Svendus.
    • Detta ämne redigerades för 1 år, 10 månader sedan av Svendus.

    Sidan jag behöver hjälp med: [logga in för att se länken]

Visar 1 svar - 1 till 9 (av 9 totalt)
  • Moderator tobifjellner (Tor-Bjorn Fjellner)

    (@tobifjellner)

    WordPress-hemmapulare, Projektledare, Författare, Översättare och Vänlig Själ

    Vilket standardtema provade du med? Twenty-twentytwo är lite speciellt, det kan vara god idé att prova med något tidigare standardtema (twenty-twentyone eller tidigare).

    Moderator tobifjellner (Tor-Bjorn Fjellner)

    (@tobifjellner)

    WordPress-hemmapulare, Projektledare, Författare, Översättare och Vänlig Själ

    I dokumentationen för temautvecklare beskrivs det hur man i ett traditionellt tema lägger in kommentarssektionen.
    Skapa filen comments.php och lägg bland mallfilerna, och länka sedan in kommentarerna där de kan behövas inuti olika mallar.

    Mer detaljerad beskrivning och kodexempel finns i https://developer.wordpress.org/themes/template-files-section/partial-and-miscellaneous-template-files/comment-template/

    Trådstartare Svendus

    (@svendus)

    vi testade med twenty-twentyone då fungerade det

    • Det här svaret redigerades för 1 år, 10 månader sedan av Svendus.
    Moderator tobifjellner (Tor-Bjorn Fjellner)

    (@tobifjellner)

    WordPress-hemmapulare, Projektledare, Författare, Översättare och Vänlig Själ

    Ladda hem https://downloads.wordpress.org/theme/twentytwentyone.1.6.zip och kolla hur kommentarerna hanteras där.

    malldelen twentytwentyone/comments.php innehåller själva ”snurran” för att visa kommentarer, och den länkas t.ex in i visningen av enstaka inlägg via single.php på raderna 30-33:

    	// If comments are open or there is at least one comment, load up the comment template.
    	if ( comments_open() || get_comments_number() ) {
    		comments_template();
    	}

    På motsvarande sätt länkas kommentarsvisningen in av page.php och image.php…

    Trådstartare Svendus

    (@svendus)

    1 <?php
    2 /**
    4	* comments.php
    5	*
    6	* The comments template. Used to display post or page comments and comment form.
    7	*
    8	* Additional settings are available under the Appearance -> Theme Options -> Comments.
    9	*
    11	if (!empty($_SERVER['SCRIPT_FILENAME']) && •comments.php1 == basename^SERVERfSCRIP^FILENAME']))
    12	die(Please do not load this page directly. Thanks!');
    13
    14	if (post_password_requiredO) {
    15	?>
    16	<div class="art-comments">
    17	<h2 class="art-postheader nocomments"x?php _e(This post is password protected. Enter the password to view any comments.', THEME_NS) ?></h2>
    18	</div>
    19	<?php
    20	return;
    21}
    22	if (have_comments()) {
    23	?>
    24	<div class="art-comments">
    25	<h2 class="art-postheader comments"x?php printf(
    26	_n('One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), THEME_NS),
    27	n u m ber_format_i 18n(get_com ments_n u m ber()),
    28	get_the_title()
    29	); ?></h2>
    30	<?php
    31	theme_ob_start();
    32	paginate_comments_links();
    33	Spagination = theme_stylize_pagination(theme_ob_get_cleanO);
    34	echo Spagination;
    35	?>
    36	<ul d="comments-list">
    37	<?php wp_list_comments(type=all&callback=theme_comment'); ?>
    38	</ul>
    39	<?php echo $pagination; ?>
    40	</div>
    41	<?php
    42}
    43	if (!comments_open()) {
    44	return;
    45}
    46	r comment form */
    47	theme_ob_start();
    48	Sargs = array();
    49	if (theme_get_option(1heme_comment_use_smilies')) {
    50
    51	function theme_comment_form_field_comment($form_field) {
    52	locate_template(array('library/smiley.php'), true);
    53	return theme_get_smiliesjs(). '<p class="smilies">'. theme_get_smilies(). '</p>'. $form_field;
    54	}
    56 add_filter('comment_form_field_comment', 1heme_comment_form_field_comment');
    57}
    58	comment_form();
    59	echo str_replace(
    60	array('id="respond"', '<h3', ,id="reply-title"', '</h3>\ 'logged-in-as', type="submit'"),
    61	array('id="respond" class="art-commentsform"', '<h2', 'id="reply-title" class="art-postheader'", '</h2>', 'art-postcontent logged-in-as', 'class="art-button" type="submit"'),
    62	theme_ob_get_clean())J
    • Det här svaret redigerades för 1 år, 10 månader sedan av Svendus.
    • Det här svaret redigerades för 1 år, 10 månader sedan av Svendus.
    Trådstartare Svendus

    (@svendus)

    tack för svar dette är hur det ser ut i mitt tema

    Trådstartare Svendus

    (@svendus)

    1 <?php
    2 /**
    4	* comments.php
    5	*
    6	* The comments template. Used to display post or page comments and comment form.
    7	*
    8	* Additional settings are available under the Appearance -> Theme Options -> Comments.
    9	*
    11	if (!empty($_SERVER['SCRIPT_FILENAME']) && •comments.php1 == basename^SERVERfSCRIP^FILENAME']))
    12	die(Please do not load this page directly. Thanks!');
    13
    14	if (post_password_requiredO) {
    15	?>
    16	<div class="art-comments">
    17	<h2 class="art-postheader nocomments"x?php _e(This post is password protected. Enter the password to view any comments.', THEME_NS) ?></h2>
    18	</div>
    19	<?php
    20	return;
    21}
    22	if (have_comments()) {
    23	?>
    24	<div class="art-comments">
    25	<h2 class="art-postheader comments"x?php printf(
    26	_n('One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), THEME_NS),
    27	n u m ber_format_i 18n(get_com ments_n u m ber()),
    28	get_the_title()
    29	); ?></h2>
    30	<?php
    31	theme_ob_start();
    32	paginate_comments_links();
    33	Spagination = theme_stylize_pagination(theme_ob_get_cleanO);
    34	echo Spagination;
    35	?>
    36	<ul d="comments-list">
    37	<?php wp_list_comments(type=all&callback=theme_comment'); ?>
    38	</ul>
    39	<?php echo $pagination; ?>
    40	</div>
    41	<?php
    42}
    43	if (!comments_open()) {
    44	return;
    45}
    46	r comment form */
    47	theme_ob_start();
    48	Sargs = array();
    49	if (theme_get_option(1heme_comment_use_smilies')) {
    50
    51	function theme_comment_form_field_comment($form_field) {
    52	locate_template(array('library/smiley.php'), true);
    53	return theme_get_smiliesjs(). '<p class="smilies">'. theme_get_smilies(). '</p>'. $form_field;
    54	}
    56 add_filter('comment_form_field_comment', 1heme_comment_form_field_comment');
    57}
    58	comment_form();
    59	echo str_replace(
    60	array('id="respond"', '<h3', ,id="reply-title"', '</h3>\ 'logged-in-as', type="submit'"),
    61	array('id="respond" class="art-commentsform"', '<h2', 'id="reply-title" class="art-postheader'", '</h2>', 'art-postcontent logged-in-as', 'class="art-button" type="submit"'),
    62	theme_ob_get_clean())J
    Moderator tobifjellner (Tor-Bjorn Fjellner)

    (@tobifjellner)

    WordPress-hemmapulare, Projektledare, Författare, Översättare och Vänlig Själ

    > n u m ber_format_i 18n(get_com ments_n u m ber()),

    Det verkar som om filen är skadad.

    Trådstartare Svendus

    (@svendus)

    Ok Tack jag har meddelat Artisteer

    http://www.artisteer.com/
    om problemet

Visar 1 svar - 1 till 9 (av 9 totalt)
  • Ämnet ”diskutera påslagen, men kommentarer visas inte” är stängt för nya svar.