Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
Oasontu
tagDiv Member

Thanks Bogdan. To clarify, you’re right that the ajax filter is only displaying posts. The problem is what post categories are being displayed. My initial impression from the block settings was that the main filter tab would control what categories could be displayed, then the ajax filter would further refine those based on other conditions (like author id or tag id).

Block Filter Settings

Let me give a clearer example of what I’d like to accomplish. Let’s say I want to show posts with the “Technology” category. That’s easy to do with the filter settings. I also have two different authors who write about technology. I want to use the ajax feature to allow readers to filter technology posts by each author. Right now, specifying author IDs in the ajax filter will show all of their posts, not just technology posts.

What’s the best way to keep the technology category as the main filter criteria but still allow further specification in ajax for author or tag IDs?

Thanks!

Cheers,
Oasontu

Oasontu
tagDiv Member

Thanks Bogdan for the fast fix. The new code worked for me. I also checked the plugin support page on WordPress, and the plugin author has been notified of this problem.

Oasontu
tagDiv Member

For the social counter issue, you probably have to manually update the plugin. If you download the full theme zip archive (http://themeforest.net/item/newspaper/5489609), you’ll see a plugin folder with latest copies of all the plugins. Looks like the current Social Counter version is 4.0.

Oasontu
tagDiv Member

Thanks for the message, Catalin. I went ahead and disabled plugins to make sure they weren’t responsible for the issue. To reproduce the behavior, take a post like this demo and paginate the content using <!--nextpage-->. The full screen header image (of the laptop) shows up on both the first page and the second page. Is that intended? Or is it potentially a bug?

Thanks for the support.

Oasontu
tagDiv Member

That’s perfect—and a beautiful trick too! Thanks.

Oasontu
tagDiv Member

For creating your sidebar, either [tagDiv] block 9 or [tagDiv] block 10 can show posts without thumbnails.

You can also use the “More Article” theme option to display additional posts without thumbnails. Use either the M8 or M9 modules.

More Articles

View post on imgur.com

Oasontu
tagDiv Member

Appreciate it. The site is currently in staging, so please use this info to access:

Username: guest
Pass: Cw(%k92JbY2$f@%gc125jHOY

And here’s a link to an example:
Post template 2 – tall featured image

It looks like I can manually crop the image thumbnail after it’s generated. However, that’s not the best solution, since I’ll have quite a few vertical images in the future as well. Appreciate any ideas you can offer.

Oasontu
tagDiv Member

It looks mostly okay to me. Here’s what it looks like on my end:

http://i.imgur.com/oleq23V.jpg

Could you maybe take a screen shot of the problem you’re seeing?

Oasontu
tagDiv Member

Excellent, that worked. I cleared the background color from the “Theme Colors” tab and removed the site background image from the “Background” tab. Thanks!

Oasontu
tagDiv Member

Okay, here’s the answer for anyone else who may care about inserting custom fields in modules or blocks.

I couldn’t initially display a simple custom field from a target post in a module. The usual code for displaying a custom field in WordPress is something like:

<?php echo get_post_meta($post->ID, 'your_custom_field_name',TRUE); ?>

For reference, that snippet opens php code (?php) and displays text (echo) using the WordPress get_post_meta function. The $post->ID identifies the relevant post, ‘your_custom_field_name’ is the name of your custom field, and TRUE indicates that you just want one value.

Unfortunately, using that code only showed metadata from the parent page where the module was embedded, not the post being pulled in for the module. Fortunately, the solution was stupidly simple. You just need to add $this to reference the post ID being constructed in the module. That looks like:

<?php echo get_post_meta($this->post->ID, 'your_custom_field_name',TRUE); ?>

The standard WordPress codex info is insufficient without understanding some basics on object oriented code.

Oasontu
tagDiv Member

My original call caused an error, though it’s possible I used a deprecated function. Apologies if I asked for anything above and beyond what support is meant to provide. I saw a few other examples of PHP and JS code snippets being provided on the forum, so I thought to ask.

Cheers,
Oasontu

Oasontu
tagDiv Member

Makes sense, thanks!

Oasontu
tagDiv Member

It looks like you’re referring to Ajax filters. If you create a block to show posts, go to the edit button (pencil icon). In the settings menu, you should see a tab for Ajax filters. You can read more on tagDiv’s block settings information page (about halfway down).

Ajax Filters

Oasontu
tagDiv Member

Those thumbnails are determined by each post’s “featured image.” You could manually edit each post to change its image. If you need to edit many posts at one time, you can also use a plugin like Quick Featured Images.

Oasontu
tagDiv Member

Not sure if this is the source of your problem, but what does the featured image for that post look like? What happens if you set a new featured image by uploading a brand new picture?

Oasontu
tagDiv Member

Also, teamfi, perhaps you could consider manually creating a separate page for the parent category? That would give you lots of flexibility for organizing and displaying the sub-categories. Might work well if you don’t have too many parent categories to worry about.

Oasontu
tagDiv Member

Yes, if you’re referring to the excerpts on blocks, you can adjust that in the theme panel under the “Excerpts” section. Here’s a screen shot of what it looks like:

Excerpts

You can set limits by number of words or number of characters. And each module has its own excerpt limits.

Hope that helps.

Viewing 17 posts - 1 through 17 (of 17 total)