Block 10 inside a page

Posted in: Newspaper
Post count: 26

Inside a blank page I have inserted a Block 10, showing latest posts of category A.

Do you know, which file I must edit to add a custom loop so to fetch posts from A with a specific custom field only?

Thanks.

Post count: 6600

Hi,

You could filer those post by using theme’s tag filer instead of hard-coding a custom query. Just add a specific tag for those posts that use that specific custom filed then filter the posts on the block using that tag.

Hope this helps!
Thanks

Post count: 26

It is a more complicated scenario that involves dates inside custom fields.
Unfortunately I really need to hard-code a custom query for this.
So, I insist το my question about the file I have to edit 🙂

Post count: 6600

Hi,

The theme uses wp query arguments to build query’s: https://codex.wordpress.org/Class_Reference/WP_Query which are changed here: http://screencast.com/t/rbKeNtnjvwdghttp://screencast.com/t/RODnUcHajhttp://screencast.com/t/esfcQqgeX
This is not easy so I suggest you get a freelancer or a developer for this is you can’t manage it.

Thanks

Post count: 26

Thanks very much for the reply.
You are totally right. This approach is really difficult.
Finally I managed to find a solution with a nested wp query inside the page template…

I would like to ask you something else.

1. Is it possible to disable the link on the title of only one (not all of them) block on the homepage?
https://i.imgur.com/gsOmoc0.jpg

2. On category pages I see this: <meta itemprop="author" content="geopal">
https://i.imgur.com/4XGiwE4.jpg
I want to replace content=”geopal” with something static even for the other authors. How I can do it?

3. And the last one: Is it possible to trim the excerpts that appear on category pages?

Thanks in advance for your patience 🙂

Post count: 1291

Hi,

1. You have to modify the function which adds the link on title to skip a certain block – http://screencast.com/t/nAn9HqunH – unfortunately it’s not an easy task, if you don’t know how to doit i suggest that you hire a professional developer to do this for you.

2. From your image the location is inside block 6 – module 9 – http://screencast.com/t/oP2bv45Ygou – you have to make modifications on the function which returns the meta – http://screencast.com/t/siY5O7logPb

3. You have to modify each module and add a condition to state that the excerpt is displayed on all pages except for the category page – http://screencast.com/t/3u7R8JkBa

Thank you, Emil G.

Post count: 26

Thank you very much.

About my third question, by saying I want to “trim” the excerpt, I don’t mean to disable it totally, but reduce the number of words that appearing.

Can I use the “get_the_excerpt” or the “the_excerpt()” functions instead of your function?

Post count: 7909

Hi,

You can try something like this – http://screencast.com/t/HErxoQbBF5
Result:
*category page(module 2) – http://screencast.com/t/WOhDob9SlZKh
*page (block 7) default excerpt length in Theme Panel – http://screencast.com/t/AN3kGzKs

Thanks!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.