Question: So I have two fields in s template page:

```
<?php echo get_post_field('post_content', 12345); ?>
<?php the_field('advertisement_one', 12345); ?>

```

The first field renders as: 

```
<p>
<img src="test.jpg">
</p>

```

The second field renders as:

```
<p>
<img src="test2.jpg">
</p>

```

Is there a way that I can just pull the text content from the "src" in both fields?

My goal is to write/display:

```
test.jpg

or 

test2.jpg

```

Answer: 
Quoting the [Redux FAQ entry on dispatching multiple actions](http://redux.js.org/docs/faq/Actions.html#actions-multiple-actions):

> 
> There's no specific rule for how you should structure your actions. Using an async middleware like Redux Thunk certainly enables scenarios such as dispatching multiple distinct but related actions in a row, dispatching actions to represent progression of an AJAX request, dispatching actions conditionally based on state, or even dispatching an action and checking the updated state immediately afterwards.
> 
> 
> In general, ask if these actions are related but independent, or should actually be represented as one action. Do what makes sense for your own situation but try to balance the readability of reducers with readability of the action log. For example, an action that includes the whole new state tree would make your reducer a one-liner, but the downside is now you have no history of why the changes are happening, so debugging gets really difficult. On the other hand, if you emit actions in a loop to keep them granular, it's a sign that you might want to introduce a new action type that is handled in a different way.
> 
> 
> Try to avoid dispatching several times synchronously in a row in the places where you're concerned about performance. There are a number of addons and approaches that can batch up dispatches as well.
> 
> 
>
I would say your first approach is better and that is the one I use commonly. Yes it may affect readability of your code when you multiple reducers are acting upon same action type but it helps keep code less verbose (which is my major complain with React ecosystem) and a bit of performance. Actions like login would not have huge impact on performance but when I am making API calls on user actions, I just handle same action type in multiple reducers. For readability, I add comments and documentation.