• Resolved cristianogoulart

    (@cristianogoulart)


    Hello, how do I display more postings in the list as in this example in See also:
    https://pousadamaya.com.br/en/Acomodacoes/Suite-Master-PARAISO-3

    On my site, I’m using this template to show the post:

    [vc_row]
    	[vc_column width="1/2"]
    		{@post_thumbnail.large}
    			<br />
    		{@album}
    	[/vc_column]
    	[vc_column width="1/2"]
    	<h4>{@post_title}</h4>
    		<h6>Detalhes da acomoda??o:</h6>{@post_content}
    		<b>Quartos:</b> {@quartos}
    			<br />
    		<b>Camas de solteiro:</b> {@camasolteiro}
    			<br />
    		<b>Camas de casal:</b> {@camacasal}
    			<br />
    		<b>Banheiros:</b> {@banheiros}
    			<br />
    		<b>Itens extras:</b> {@extras}
    			<br />
    			<br />
    		<a href="<?php echo get_home_url(); ?>/regras" target="_blank">Clique aqui</a> e conhe?a nossas regras de hospedagem.
    			<br />
    			<br />
    		Gostou?
    			<br />
    		<form action="<?php echo get_home_url(); ?>/#contato" method="get">
    			<input type="submit" value="Entre em contato conosco!"/>
    		</form>
    	[/vc_column]
    [/vc_row]
    [vc_row]
    	[vc_column]
    			<br />
    			<br />
    		<h5>Veja também</h5>
    			<br />
    
    	[/vc_column]
    [/vc_row]

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    If you’re talking about the See Also listings, you would add a relationship field and manually manage the see also, or if it’s based on something specific about the current post, you could pull that list with a Pods List Widget, Pods Single Item Widget (using current post) or a direct shortcode. How are they related?

    This also helps with the related items concept:

    Thread Starter cristianogoulart

    (@cristianogoulart)

    OK. I created a template with the following code:

    [vc_row]
    	[vc_column width="1/3"]
    		{@post_thumbnail}
    	[/vc_column]
    	[vc_column width="1/3"]
    		<h6>{@post_title}</h6>
    		<b>Detalhes da acomoda??o:</b>{@post_content}
    	[/vc_column]
    	[vc_column width="1/3"]
    		<form action="{@permalink}" method="get">
    			<input type="submit" value="Mais detalhes"/>
    		</form>
    	[/vc_column]
    [/vc_row]

    How would I insert the List Widget Pods related to this template in the previous template?

    Note: I installed the Shortdode Plugin Widget, listed the List Widget Pods and used the shortcore [widget]. Did not work.

    Thanks in advance

    Plugin Contributor Jim True

    (@jimtrue)

    You still haven’t advised what the posts you want to display or what shortcode you’re wanting to run is. It’s very hard to help without knowing someone about your structure and your related posts: are they actually related through a relationship field or are you going to pull them some other way?

    Plugin Contributor Jim True

    (@jimtrue)

    Your template is nothing but the featured image, post title, content and a form button with the action of the Permalink of a post. Still need the loop that will be passed to that template, either through a Pods Shortcode or Widget with something about it that relates it to the current post.

    Plugin Contributor Jim True

    (@jimtrue)

    If you’re doing related records, you’d wrap the whole thing in an [each relationship_field][/each] and call it with the Pods Single Item Widget and check the box for Use Current Post. It would do the same thing as the Auto Templates we demonstrate in the video.

    Plugin Contributor Jim True

    (@jimtrue)

    @christianogoulart We’ve not heard back from you on this one. Are you still experiencing issues or did our assistance above help? You dropped into our Slack Chat looking for language specific help but then stopped responding. I was unable to get one of our portuguese translators to assist, unfortunately.

    Thread Starter cristianogoulart

    (@cristianogoulart)

    I did not succeed and I gave up.
    Too bad it would look the way the customer asked.
    But anyway, thank you for trying to help me Mr. Jim.

    Plugin Contributor Jim True

    (@jimtrue)

    I still think it’s doable, just need some language support for you. Part of the problem, too, is the Visual Composer builder and you’re trying to use a Shortcode plugin to make the widgets work. You’ve got too many pieces in the way, I think.

    In this particular situation, you want to use the Widget DIRECTLY in a Widget; not being called by a shortcode within a Visual Composer block.

    brunomac

    (@brunomac)

    Oi @cristianogoulart, conseguiu resolver o seu problema?
    me diz como posso ajudar por favor. Só percebendo a estrutura de dados do seu site se pode auxiliar numa solu??o fácil e prática.
    Me pode dar mais informa??es por favor? O problema que está encontrando é de fácil e simples resolu??o

    Thread Starter cristianogoulart

    (@cristianogoulart)

    Sorted out!
    I got the shortcode from an Item List widget.
    [vc_widget_sidebar sidebar_id="sidebar_name"]

    Thank you Sirs. Jim and Bruno.

    Thread Starter cristianogoulart

    (@cristianogoulart)

    How should I use an if in template so it does not show the same post in the list?

    Example of how I want:

    POST 1

    See Also:
    Post 2
    Post 3
    Post 4

    Example of how it is:
    POST 1

    See Also:
    Post 1
    Post 2
    Post 3
    Post 4

    Plugin Contributor Jim True

    (@jimtrue)

    Provide the pods shortcode you’re using to call the list (or are you doing it with a pods list widget?)

    Thread Starter cristianogoulart

    (@cristianogoulart)

    I’m using the widget pods list

    Plugin Contributor Jim True

    (@jimtrue)

    how do you have it configured?

    Plugin Contributor Jim True

    (@jimtrue)

    You wouldn’t be able to exclude it with List Widget because you can’t use magic tags in the where clause in the List Widget. If you’re trying to exclude everything but the current post, you need to do a pods shortcode, like:

    [pods name="whatever-your-post-type-is" limit="5" where="ID NOT IN ('{@ID}')" template="Template List"]

    You would need to put this inside a Pods Template that you’d call from a Pods Single Item Widget with the ‘Use Current Record’ checked since you’re using a builder where the widget is outside the loop. The shortcode above REQUIRES being Inside the Loop.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘[See also]List more posts’ is closed to new replies.