Timeline for Excerpts are not displayed by a shortcode on category pages
Current License: CC BY-SA 3.0
19 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 28, 2015 at 22:05 | vote | accept | Yuri | ||
Nov 28, 2015 at 19:01 | history | edited | Pieter Goosen | CC BY-SA 3.0 |
added 16 characters in body
|
Nov 28, 2015 at 18:41 | history | edited | Yuri | CC BY-SA 3.0 |
improved the question
|
Nov 28, 2015 at 11:09 | answer | added | Pieter Goosen | timeline score: 4 | |
Nov 28, 2015 at 10:58 | answer | added | tao | timeline score: 4 | |
Nov 28, 2015 at 10:28 | comment | added | Yuri | @andrei-gheorghiu No, I don't enabled excerpt. How to do this? | |
Nov 28, 2015 at 10:22 | comment | added | tao |
I installed both the theme and the plugin. From what I see, the advert post type is registered without excerpt enabled. Have you enabled excerpts for this post type yourself? If so, with what code?
|
|
Nov 28, 2015 at 6:39 | comment | added | Yuri | @pieter-goosen The plugin really works, I just can't display excerpts in entries on category pages. Maybe a plugin bug? | |
Nov 28, 2015 at 5:29 | comment | added | Pieter Goosen | I really do not get the logic here. You are trying to inject 20 posts in each post's content in a single post and posts from a taxonomy archive page via a shortcode. This does not seem right | |
Nov 27, 2015 at 23:06 | comment | added | tao | Let us continue this discussion in chat. | |
Nov 27, 2015 at 23:05 | comment | added | Yuri |
@andrei-gheorghiu I updated the question. P.S. I added the $query = ''; , but I don't see any changes. What must to happen?
|
|
Nov 27, 2015 at 22:57 | history | edited | Yuri | CC BY-SA 3.0 |
updated the question
|
Nov 27, 2015 at 22:53 | comment | added | tao |
The only thing we don't have here is what the function adverts_request() does. Can you add that function, too? or, better yet, add $query = ''; inside the condition if($category) inside shortcode_adverts_list() .
|
|
Nov 27, 2015 at 22:49 | comment | added | Yuri |
@andrei-gheorghiu Checked the elseif , is really true. Maybe the shortcode_adverts_list() needs a missing attribute?
|
|
Nov 27, 2015 at 22:34 | comment | added | tao |
The first condition is_singular('advert') is clearly not true on a category/tax page. Are you sure the elseif is true? Make an echo on that condition in the page template, to make sure.
|
|
Nov 27, 2015 at 21:57 | history | edited | Yuri | CC BY-SA 3.0 |
improved the question
|
Nov 27, 2015 at 21:45 | comment | added | Yuri | @andrei-gheorghiu I installed that plugin, but besides the function name (adverts_the_content) attached to the_content() I don't see anything helpful. | |
Nov 27, 2015 at 21:29 | comment | added | tao |
debug this can show you a list of all filters attached to a certain filter hook on any frontend page. Looking at the list of filters on the_content on a category page might help you out.
|
|
Nov 27, 2015 at 21:12 | history | asked | Yuri | CC BY-SA 3.0 |