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.
> 
> 
>
Do you really need to store the user icon in Redux? A better approach in this case is to have a selector that returns the icon based on the logged in user. That way you can keep the minimal amount of state in the store. 

You can use the [Reselect](https://github.com/reactjs/reselect) library to cache selectors.